summaryrefslogtreecommitdiff
path: root/Command/SendKey.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/SendKey.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/SendKey.hs')
-rw-r--r--Command/SendKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/SendKey.hs b/Command/SendKey.hs
index e5d4c7e6e..2aae1ab90 100644
--- a/Command/SendKey.hs
+++ b/Command/SendKey.hs
@@ -24,7 +24,7 @@ seek = [withKeys start]
start :: Key -> CommandStart
start key = ifM (inAnnex key)
- ( fieldTransfer Upload key $ \p -> do
+ ( fieldTransfer Upload key $ \_p -> do
file <- inRepo $ gitAnnexLocation key
liftIO $ rsyncServerSend file
, do
@@ -36,7 +36,7 @@ fieldTransfer :: Direction -> Key -> (MeterUpdate -> Annex Bool) -> CommandStart
fieldTransfer direction key a = do
afile <- Fields.getField Fields.associatedFile
ok <- maybe (a $ const noop)
- (\u -> runTransfer (Transfer direction (toUUID u) key) afile a)
+ (\u -> runTransfer (Transfer direction (toUUID u) key) afile noRetry a)
=<< Fields.getField Fields.remoteUUID
if ok
then liftIO exitSuccess