1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Revert "LocalStore::addToStoreFromDump copy in chunks"

This reverts commit 592851fb67. We don't
need this extra feature anymore
This commit is contained in:
John Ericson 2020-07-15 23:19:41 +00:00
parent bc109648c4
commit 5602637d9e
3 changed files with 15 additions and 31 deletions

View file

@ -1037,7 +1037,7 @@ StorePath LocalStore::addToStore(const string & name, const Path & _srcPath,
FileIngestionMethod method, HashType hashAlgo, PathFilter & filter, RepairFlag repair)
{
Path srcPath(absPath(_srcPath));
auto source = sinkToSource([&](Sink & sink, size_t & wanted) {
auto source = sinkToSource([&](Sink & sink) {
if (method == FileIngestionMethod::Recursive)
dumpPath(srcPath, sink, filter);
else