File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hnix-store-remote/src/System/Nix/Store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import qualified System.Nix.GC as GC
5252import System.Nix.Hash (Digest , HashAlgorithm )
5353import System.Nix.Path
5454import System.Nix.Hash
55- import System.Nix.Nar (localPackNar , putNar )
55+ import System.Nix.Nar (localPackNar , putNar , narEffectsIO )
5656import System.Nix.Util
5757
5858import System.Nix.Store.Remote.Types
@@ -206,10 +206,10 @@ addToStore
206206 -> MonadStore Path
207207addToStore name pth recursive algoProxy pfilter repair = do
208208 -- Get length first
209- len <- liftIO $ LBS. length . B. runPut . putNar <$> localPackNar undefined pth
209+ len <- liftIO $ LBS. length . B. runPut . putNar <$> localPackNar narEffectsIO pth
210210 -- Fetch full NAR bytestring separately. We are trying to
211211 -- avoid forcing the full string in memory
212- bs :: LBS. ByteString <- liftIO $ B. runPut . putNar <$> localPackNar undefined pth
212+ bs :: LBS. ByteString <- liftIO $ B. runPut . putNar <$> localPackNar narEffectsIO pth
213213 runOpArgs AddToStore $ do
214214 putByteStringLen name
215215 -- TODO: really send the string 0 or 1? Or is this Word8's 0 and 1?
You can’t perform that action at this time.
0 commit comments