Use ServeProto::Serialise<ServeProto::BuildOptions>

This commit is contained in:
John Ericson 2023-12-09 12:26:11 -05:00
parent b56d2383c1
commit 20f5a2120c

View File

@ -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;