From 86e8532c0a899882acd66772fc0bd6391ee386a3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Jul 2014 22:34:10 -0400 Subject: [PATCH] allM has slightly better memory use --- Remote/Helper/Chunked.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Remote/Helper/Chunked.hs b/Remote/Helper/Chunked.hs index baf47f067f..4cb20b875b 100644 --- a/Remote/Helper/Chunked.hs +++ b/Remote/Helper/Chunked.hs @@ -154,7 +154,7 @@ toChunkList k (chunksize, chunkcount) = takeChunkKeyStream chunkcount $ removeChunks :: (Key -> Annex Bool) -> UUID -> ChunkConfig -> EncKey -> Key -> Annex Bool removeChunks remover u chunkconfig encryptor k = do ls <- chunkKeys u chunkconfig k - ok <- and <$> mapM (remover . encryptor) (concat ls) + ok <- allM (remover . encryptor) (concat ls) when ok $ case chunkconfig of (UnpaddedChunks _) | not (isChunkKey k) -> do