Merge pull request #11126 from DeterminateSystems/dont-send-version-twice

BasicClientConnection::handshake(): Don't send our version twice
This commit is contained in:
John Ericson 2024-07-17 15:50:17 -04:00 committed by GitHub
commit a915862450
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,7 +152,6 @@ WorkerProto::BasicClientConnection::handshake(BufferedSink & to, Source & from,
throw Error("Nix daemon protocol version not supported");
if (GET_PROTOCOL_MINOR(daemonVersion) < 10)
throw Error("the Nix daemon version is too old");
to << localVersion;
return std::min(daemonVersion, localVersion);
}