summaryrefslogtreecommitdiff
path: root/Command/TransferKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-19 16:08:37 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-19 16:08:37 -0400
commitaff09a1f33be7b3df182a7c85b30a2d3e04833c7 (patch)
tree6d7cb4ed4e9483c14bdd832c9af848dc1b866789 /Command/TransferKey.hs
parent3c81d70c1beccb50571281ef35c9123bac006b7c (diff)
add a progress callback to storeKey, and threaded it all the way through
Transfer info files are updated when the callback is called, updating the number of bytes transferred. Left unused p variables at every place the callback should be used. Which is rather a lot..
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 ed6fbb68c..793dbeb56 100644
--- a/Command/TransferKey.hs
+++ b/Command/TransferKey.hs
@@ -43,8 +43,8 @@ start to from file key =
toPerform :: Remote -> Key -> AssociatedFile -> CommandPerform
toPerform remote key file = next $
- upload (uuid remote) key file $ do
- ok <- Remote.storeKey remote key file
+ upload (uuid remote) key file $ \p -> do
+ ok <- Remote.storeKey remote key file p
when ok $
Remote.logStatus remote key InfoPresent
return ok