Skip to content

Commit

Permalink
Merge pull request #1317 from obsidiansystems/substitute-flag
Browse files Browse the repository at this point in the history
`copyClosureTo`: Use `SubstituteFlag` instead of `bool`
  • Loading branch information
Ericson2314 authored Dec 7, 2023
2 parents a5d44b6 + 86cd5e9 commit 5870743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hydra-queue-runner/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static void copyClosureTo(
Machine::Connection & conn,
Store & destStore,
const StorePathSet & paths,
bool useSubstitutes = false)
SubstituteFlag useSubstitutes = NoSubstitute)
{
StorePathSet closure;
destStore.computeFSClosure(paths, closure);
Expand Down Expand Up @@ -266,7 +266,7 @@ static BasicDerivation sendInputs(
destStore.computeFSClosure(basicDrv.inputSrcs, closure);
copyPaths(destStore, localStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
} else {
copyClosureTo(conn, destStore, basicDrv.inputSrcs, true);
copyClosureTo(conn, destStore, basicDrv.inputSrcs, Substitute);
}

auto now2 = std::chrono::steady_clock::now();
Expand Down

0 comments on commit 5870743

Please sign in to comment.