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 <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
c35a5ff611
commit
9cec50cb2e
2 changed files with 3 additions and 35 deletions
|
@ -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?;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue