Skip to content

Commit

Permalink
copyClosureTo: Use SubstituteFlag instead of bool
Browse files Browse the repository at this point in the history
This matches Nix and adds clarity.
  • Loading branch information
Ericson2314 committed Dec 7, 2023
1 parent a5d44b6 commit c62a70b
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 c62a70b

Please sign in to comment.