update progress meter when sending to p2p remote
This commit was sponsored by Thom May on Patreon.
This commit is contained in:
parent
7c245b2180
commit
83ea1cec86
4 changed files with 24 additions and 28 deletions
|
@ -73,10 +73,9 @@ chainGen addr r u c gc = do
|
|||
}
|
||||
return (Just this)
|
||||
|
||||
-- TODO update progress
|
||||
store :: UUID -> P2PAddress -> ConnectionPool -> Key -> AssociatedFile -> MeterUpdate -> Annex Bool
|
||||
store u addr connpool k af p = fromMaybe False
|
||||
<$> runProto u addr connpool (P2P.put k af)
|
||||
<$> runProto u addr connpool (P2P.put k af p)
|
||||
|
||||
retrieve :: UUID -> P2PAddress -> ConnectionPool -> Key -> AssociatedFile -> FilePath -> MeterUpdate -> Annex (Bool, Verification)
|
||||
retrieve u addr connpool k af dest _p = unVerified $ fromMaybe False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue