From e7a1ae87aaff4d1b3ce510b1b32057bb5cf67788 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 20 Jan 2022 14:47:48 -0500 Subject: [PATCH] simplify, `computeFSClosure` can take a set now --- src/hydra-queue-runner/build-remote.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 9f789978..97068938 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -86,8 +86,7 @@ static void copyClosureTo(std::timed_mutex & sendMutex, ref destStore, bool useSubstitutes = false) { StorePathSet closure; - for (auto & path : paths) - destStore->computeFSClosure(path, closure); + destStore->computeFSClosure(paths, closure); /* Send the "query valid paths" command with the "lock" option enabled. This prevents a race where the remote host