assistant: When there are multiple remotes giving different ways to access the same repository, honor remote cost settings and use the cheapest available.
Note that TransferInfo does not always contain the Remote, although any transfer added to the TransferQueue does have a Remote in its TransferInfo. The transferkeys command still accepts a UUID, which is useful to handle upgrades, where an old assistant version runs the new transferkeys. This commit was sponsored by Kalle Svensson.
This commit is contained in:
parent
e5bebde345
commit
fed509fb3e
6 changed files with 31 additions and 17 deletions
|
@ -56,9 +56,9 @@ checkTransferrerPoolItem program batchmaker i = case i of
|
|||
|
||||
{- Requests that a Transferrer perform a Transfer, and waits for it to
|
||||
- finish. -}
|
||||
performTransfer :: Transferrer -> Transfer -> AssociatedFile -> IO Bool
|
||||
performTransfer transferrer t f = catchBoolIO $ do
|
||||
T.sendRequest t f (transferrerWrite transferrer)
|
||||
performTransfer :: Transferrer -> Transfer -> TransferInfo -> IO Bool
|
||||
performTransfer transferrer t info = catchBoolIO $ do
|
||||
T.sendRequest t info (transferrerWrite transferrer)
|
||||
T.readResponse (transferrerRead transferrer)
|
||||
|
||||
{- Starts a new git-annex transferkeys process, setting up handles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue