From 621cc7209ac489ddb4f69a275a8a62c4cce018c3 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 7 Dec 2023 01:50:52 -0500 Subject: [PATCH] Use `nix::serve_proto::buildDerivationRequest` --- src/hydra-queue-runner/build-remote.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index c1e1d26af..af61cbc00 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -289,17 +289,7 @@ static BuildResult performBuild( counter & nrStepsBuilding ) { - 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.repeats // == build-repeat - << options.enforceDeterminism; - } - conn.to.flush(); + conn.buildDerivationRequest(localStore, drvPath, drv, options); BuildResult result;