optimisation
This commit is contained in:
parent
e7a550a25b
commit
64db927d73
1 changed files with 4 additions and 3 deletions
|
@ -627,10 +627,11 @@ cachedAllRepoData = do
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
matcher <- lift getKeyOnlyMatcher
|
matcher <- lift getKeyOnlyMatcher
|
||||||
!v <- lift $ overLocationLogs emptyKeyInfo $ \k locs d -> do
|
!v <- lift $ overLocationLogs emptyKeyInfo $ \k locs d -> do
|
||||||
numcopies <- genericLength . snd
|
|
||||||
<$> trustPartition DeadTrusted locs
|
|
||||||
ifM (matchOnKey matcher k)
|
ifM (matchOnKey matcher k)
|
||||||
( return (addKeyCopies numcopies k d)
|
( do
|
||||||
|
numcopies <- genericLength . snd
|
||||||
|
<$> trustPartition DeadTrusted locs
|
||||||
|
return (addKeyCopies numcopies k d)
|
||||||
, return d
|
, return d
|
||||||
)
|
)
|
||||||
put s { allRepoData = Just v }
|
put s { allRepoData = Just v }
|
||||||
|
|
Loading…
Reference in a new issue