diff options
author | Picnoir <picnoir@alternativebit.fr> | 2024-04-03T08·54+0200 |
---|---|---|
committer | picnoir picnoir <picnoir@alternativebit.fr> | 2024-04-03T11·32+0000 |
commit | 9cec50cb2eb1606511d8e8d3e8a4137e0feb6ffa (patch) | |
tree | 0995ac48c2d1ac96cde0292d6db10cd5ff168e45 /users | |
parent | c35a5ff611eed94c4cf32de4e26baca4fe38889e (diff) |
refactor(tvix/nix-compat): drop read_u32 r/7846
Actually these are all u64 LE encoded on the wire. Change-Id: I5ca22c7639607ac47117cd946e036a444271885a Reviewed-on: https://cl.tvl.fyi/c/depot/+/11348 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r-- | users/picnoir/tvix-daemon/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/picnoir/tvix-daemon/src/main.rs b/users/picnoir/tvix-daemon/src/main.rs index be03f95a5eb9..e302b83fcbf9 100644 --- a/users/picnoir/tvix-daemon/src/main.rs +++ b/users/picnoir/tvix-daemon/src/main.rs @@ -90,7 +90,7 @@ where conn.write(&primitive::PROTOCOL_VERSION).await?; conn.flush().await?; debug!("Hello responded"); - let client_version = primitive::read_u32(&mut conn).await?; + let client_version = primitive::read_u64(&mut conn).await?; debug!("Version read"); if client_version < 0x10a { return Err(anyhow!("The nix client version is too old")); @@ -101,7 +101,7 @@ where if protocol_minor >= 14 { debug!("read cpu affinity"); // Obsolete CPU affinity. - let read_affinity = primitive::read_u32(&mut conn).await?; + let read_affinity = primitive::read_u64(&mut conn).await?; if read_affinity != 0 { skip_8_bytes(&mut conn).await?; }; |