fix(nix-compat/nix_daemon): fix outdated comment

We're not saying 2.3 here anymore in all cases, but use the version
specified in the `nix_version` function argument.

Change-Id: I86c34f97eea4141b8431de7c6a784750d6b7c2cb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13166
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Brian Olsen <me@griff.name>
This commit is contained in:
Florian Klink 2025-02-20 22:35:21 +07:00 committed by clbot
parent 5847cbf464
commit 9d5a556533

View file

@ -215,9 +215,7 @@ where
let _reserve_space = conn.read_u64_le().await?;
}
if picked_version.minor() >= 33 {
// Nix version. We're plain lying, we're not Nix, but eh…
// Setting it to the 2.3 lineage. Not 100% sure this is a
// good idea.
// Nix version.
wire::write_bytes(&mut conn, nix_version).await?;
conn.flush().await?;
}