Skip to content

Commit 6aca57f

Browse files
committed
Use the narReadFile effect in the NAR streamer
1 parent f0dfc6d commit 6aca57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnix-store-core/src/System/Nix/Internal/Nar/Streamer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ streamNarIO effs basePath yield = do
9999
-- Read, yield, and pad the file
100100
yieldFile :: FilePath -> Int64 -> m ()
101101
yieldFile path fsize = do
102-
mapM_ yield . Bytes.Lazy.toChunks =<< IO.liftIO (Bytes.Lazy.readFile path)
102+
mapM_ yield . Bytes.Lazy.toChunks =<< IO.liftIO (Nar.narReadFile effs path)
103103
yield $ Bytes.replicate (padLen $ fromIntegral fsize) 0
104104

105105
data IsExecutable = NonExecutable | Executable

0 commit comments

Comments
 (0)