From 20f5a2120cf0663bd52df9e82c42d26942017c1a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sat, 9 Dec 2023 12:26:11 -0500 Subject: [PATCH] Use `ServeProto::Serialise` --- src/hydra-queue-runner/build-remote.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 659618b7..a4882f5c 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -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;