Skip to content

Commit

Permalink
Use ServeProto::Serialise<ServeProto::BuildOptions>
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Dec 10, 2023
1 parent b56d238 commit 20f5a21
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/hydra-queue-runner/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,7 @@ static BuildResult performBuild(
{
conn.to << ServeProto::Command::BuildDerivation << localStore.printStorePath(drvPath);
writeDerivation(conn.to, localStore, drv);
conn.to << options.maxSilentTime << options.buildTimeout;
if (GET_PROTOCOL_MINOR(conn.remoteVersion) >= 2)
conn.to << options.maxLogSize;
if (GET_PROTOCOL_MINOR(conn.remoteVersion) >= 3) {
conn.to
<< options.nrRepeats
<< options.enforceDeterminism;
}
ServeProto::write(localStore, conn, options);
conn.to.flush();

BuildResult result;
Expand Down

0 comments on commit 20f5a21

Please sign in to comment.