more efficient uuid to remote lookup
This commit is contained in:
parent
7b6cf1981f
commit
47950cdf31
1 changed files with 1 additions and 3 deletions
|
@ -62,10 +62,8 @@ onAdd file = case parseTransferFile file of
|
|||
go _ Nothing = noop -- transfer already finished
|
||||
go t (Just info) = do
|
||||
debug [ "transfer starting:", describeTransfer t info ]
|
||||
r <- headMaybe . filter (sameuuid t)
|
||||
<$> liftAnnex Remote.remoteList
|
||||
r <- liftAnnex $ Remote.remoteFromUUID $ transferUUID t
|
||||
updateTransferInfo t info { transferRemote = r }
|
||||
sameuuid t r = Remote.uuid r == transferUUID t
|
||||
|
||||
{- Called when a transfer information file is updated.
|
||||
-
|
||||
|
|
Loading…
Reference in a new issue