diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index ca508b8b..f679db0c 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -10,8 +10,8 @@ #include "serve-protocol.hh" #include "state.hh" #include "util.hh" -#include "worker-protocol.hh" -#include "worker-protocol-impl.hh" +#include "serve-protocol.hh" +#include "serve-protocol-impl.hh" #include "finally.hh" #include "url.hh" @@ -122,12 +122,12 @@ static void copyClosureTo( the remote host to substitute missing paths. */ // FIXME: substitute output pollutes our build log conn.to << ServeProto::Command::QueryValidPaths << 1 << useSubstitutes; - WorkerProto::write(destStore, conn, closure); + ServeProto::write(destStore, conn, closure); conn.to.flush(); /* Get back the set of paths that are already valid on the remote host. */ - auto present = WorkerProto::Serialise::read(destStore, conn); + auto present = ServeProto::Serialise::read(destStore, conn); if (present.size() == closure.size()) return; @@ -315,7 +315,7 @@ static BuildResult performBuild( } } if (GET_PROTOCOL_MINOR(conn.remoteVersion) >= 6) { - WorkerProto::Serialise::read(localStore, conn); + ServeProto::Serialise::read(localStore, conn); } return result; @@ -332,13 +332,13 @@ static std::map queryPathInfos( /* Get info about each output path. */ std::map infos; conn.to << ServeProto::Command::QueryPathInfos; - WorkerProto::write(localStore, conn, outputs); + ServeProto::write(localStore, conn, outputs); conn.to.flush(); while (true) { auto storePathS = readString(conn.from); if (storePathS == "") break; auto deriver = readString(conn.from); // deriver - auto references = WorkerProto::Serialise::read(localStore, conn); + auto references = ServeProto::Serialise::read(localStore, conn); readLongLong(conn.from); // download size auto narSize = readLongLong(conn.from); auto narHash = Hash::parseAny(readString(conn.from), htSHA256); diff --git a/src/hydra-queue-runner/state.hh b/src/hydra-queue-runner/state.hh index ce795700..dfeaefe7 100644 --- a/src/hydra-queue-runner/state.hh +++ b/src/hydra-queue-runner/state.hh @@ -21,7 +21,7 @@ #include "store-api.hh" #include "sync.hh" #include "nar-extractor.hh" -#include "worker-protocol.hh" +#include "serve-protocol.hh" typedef unsigned int BuildID; @@ -310,12 +310,12 @@ struct Machine // Backpointer to the machine ptr machine; - operator nix::WorkerProto::ReadConn () + operator nix::ServeProto::ReadConn () { return { .from = from }; } - operator nix::WorkerProto::WriteConn () + operator nix::ServeProto::WriteConn () { return { .to = to }; }