Skip to content

Commit

Permalink
Merge pull request #11126 from DeterminateSystems/dont-send-version-t…
Browse files Browse the repository at this point in the history
…wice

BasicClientConnection::handshake(): Don't send our version twice
  • Loading branch information
Ericson2314 authored Jul 17, 2024
2 parents 6867cb1 + 87f8ff2 commit a915862
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libstore/worker-protocol-connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a915862

Please sign in to comment.