summaryrefslogtreecommitdiff
path: root/Command/TransferKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-23 13:27:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-23 13:27:13 -0400
commitdf07ccf404bf6a950fe0a0a31f315486c510a2f0 (patch)
treea7188982ebb24b9ca0122c7516143c5089aef197 /Command/TransferKey.hs
parentd4055b3dd2999a75381c4cae2ed30a7dcd32d3f2 (diff)
make the assistant retry failed transfers
When a transfer fails, the progress info can be used to intelligently retry it. If the transfer managed to make some progress, but did not fully complete, then there's a good chance that a retry will finish it (or at least make more progress).
Diffstat (limited to 'Command/TransferKey.hs')
-rw-r--r--Command/TransferKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/TransferKey.hs b/Command/TransferKey.hs
index 793dbeb56..a308e0175 100644
--- a/Command/TransferKey.hs
+++ b/Command/TransferKey.hs
@@ -43,7 +43,7 @@ start to from file key =
toPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
toPerform remote key file = next $
- upload (uuid remote) key file $ \p -> do
+ upload (uuid remote) key file forwardRetry $ \p -> do
ok <- Remote.storeKey remote key file p
when ok $
Remote.logStatus remote key InfoPresent
@@ -51,5 +51,5 @@ toPerform remote key file = next $
fromPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
fromPerform remote key file = next $
- download (uuid remote) key file $
+ download (uuid remote) key file forwardRetry $
getViaTmp key $ Remote.retrieveKeyFile remote key file