Skip to content

Commit a63e522

Browse files
authored
Merge pull request #224 from sandydoo/fix/read-file
Use the narReadFile effect in the NAR streamer
2 parents 5b66d53 + 6aca57f commit a63e522

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
@@ -98,7 +98,7 @@ streamNarIO effs basePath yield = do
9898
-- Read, yield, and pad the file
9999
yieldFile :: FilePath -> Int64 -> m ()
100100
yieldFile path fsize = do
101-
mapM_ yield . Bytes.Lazy.toChunks =<< IO.liftIO (Bytes.Lazy.readFile path)
101+
mapM_ yield . Bytes.Lazy.toChunks =<< IO.liftIO (Nar.narReadFile effs path)
102102
yield $ Bytes.replicate (padLen $ fromIntegral fsize) 0
103103

104104
data IsExecutable = NonExecutable | Executable

0 commit comments

Comments
 (0)