Merge pull request #1124 from obsidiansystems/simplify--closure-of-path-set

simplify, `computeFSClosure` can take a set now
This commit is contained in:
Graham Christensen 2022-01-24 14:09:35 -05:00 committed by GitHub
commit 3a4ea6e563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,8 +86,7 @@ static void copyClosureTo(std::timed_mutex & sendMutex, ref<Store> 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