Skip to content

Commit

Permalink
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 Feb 20, 2022
1 parent 5a995a8 commit d8a6eec
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 @@ -107,7 +107,7 @@ static void openConnection(Machine::ptr machine, Path tmpDir, int stderrFD, Chil

static void copyClosureTo(std::timed_mutex & sendMutex, Store & destStore,
serve_proto::BasicConnection & conn, const StorePathSet & paths,
bool useSubstitutes = false)
SubstituteFlag useSubstitutes = NoSubstitute)
{
StorePathSet closure;
destStore.computeFSClosure(paths, closure);
Expand Down Expand Up @@ -310,7 +310,7 @@ void State::buildRemote(ref<Store> destStore,
destStore->computeFSClosure(inputs, closure);
copyPaths(*destStore, *localStore, closure, NoRepair, NoCheckSigs, NoSubstitute);
} else {
copyClosureTo(machine->state->sendLock, *destStore, conn, inputs, true);
copyClosureTo(machine->state->sendLock, *destStore, conn, inputs, Substitute);
}

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

0 comments on commit d8a6eec

Please sign in to comment.