split up remaining items from todo/git-annex_proxies and close it!

This commit is contained in:
Joey Hess 2024-10-30 14:49:54 -04:00
parent 9b7378fb79
commit 87871f724e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 27 additions and 82 deletions

View file

@ -400,6 +400,11 @@ liveRepoOffsets (RepoSizeHandle (Just h) _) wantedsizechange = H.queryDb h $ do
map (\(k, v) -> (k, [v])) $
fromMaybe [] $
M.lookup u livechanges
-- This could be optimised to a single SQL join, rather
-- than querying once for each live change. That would make
-- it less expensive when there are a lot happening at the
-- same time. Persistent is not capable of that join,
-- it would need a dependency on esquelito.
livechanges' <- combinelikelivechanges <$>
filterM (nonredundantlivechange livechangesbykey u)
(fromMaybe [] $ M.lookup u livechanges)