about summary refs log tree commit diff
path: root/src/nix-copy-closure/nix-copy-closure.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-16T12·50+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-16T12·50+0100
commitc5b83d8913d73ea58ff9437c41bf6bd0c6839ad0 (patch)
treea7b934a170322b26d8039461102a66de922308e2 /src/nix-copy-closure/nix-copy-closure.cc
parent91d67692cfb05e4ece744fb9d144921ae920f2de (diff)
copyPaths(): Use queryValidPaths() to reduce SSH latency
Diffstat (limited to 'src/nix-copy-closure/nix-copy-closure.cc')
-rwxr-xr-xsrc/nix-copy-closure/nix-copy-closure.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-copy-closure/nix-copy-closure.cc b/src/nix-copy-closure/nix-copy-closure.cc
index 05a4deea3d55..ab80d96b5efd 100755
--- a/src/nix-copy-closure/nix-copy-closure.cc
+++ b/src/nix-copy-closure/nix-copy-closure.cc
@@ -58,6 +58,6 @@ int main(int argc, char ** argv)
         PathSet closure;
         from->computeFSClosure(storePaths2, closure, false, includeOutputs);
 
-        copyPaths(from, to, Paths(closure.begin(), closure.end()), useSubstitutes);
+        copyPaths(from, to, closure, useSubstitutes);
     });
 }