From 9cec50cb2eb1606511d8e8d3e8a4137e0feb6ffa Mon Sep 17 00:00:00 2001 From: Picnoir Date: Wed, 3 Apr 2024 10:54:49 +0200 Subject: refactor(tvix/nix-compat): drop read_u32 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 Tested-by: BuildkiteCI --- users/picnoir/tvix-daemon/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'users/picnoir') 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?; }; -- cgit 1.4.1