Unverified Commit 8cde945e authored by nachiketb-nvidia's avatar nachiketb-nvidia Committed by GitHub
Browse files

fix: small build warning fix (#2504)


Signed-off-by: default avatarnachiketb-nvidia <nachiketb@nvidia.com>
parent 125be8ce
...@@ -65,7 +65,7 @@ impl Decoder for TwoPartCodec { ...@@ -65,7 +65,7 @@ impl Decoder for TwoPartCodec {
let header_len = cursor.get_u64() as usize; let header_len = cursor.get_u64() as usize;
let body_len = cursor.get_u64() as usize; let body_len = cursor.get_u64() as usize;
let checksum = cursor.get_u64(); let _checksum = cursor.get_u64();
let total_len = 24 + header_len + body_len; let total_len = 24 + header_len + body_len;
...@@ -87,7 +87,7 @@ impl Decoder for TwoPartCodec { ...@@ -87,7 +87,7 @@ impl Decoder for TwoPartCodec {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {
// If the server sent a dummy checksum, skip it. // If the server sent a dummy checksum, skip it.
if checksum != 0 { if _checksum != 0 {
let bytes_to_hash = let bytes_to_hash =
header_len header_len
.checked_add(body_len) .checked_add(body_len)
...@@ -100,7 +100,7 @@ impl Decoder for TwoPartCodec { ...@@ -100,7 +100,7 @@ impl Decoder for TwoPartCodec {
let computed_checksum = xxh3_64(data_to_hash); let computed_checksum = xxh3_64(data_to_hash);
// Compare checksums // Compare checksums
if checksum != computed_checksum { if _checksum != computed_checksum {
return Err(TwoPartCodecError::ChecksumMismatch); return Err(TwoPartCodecError::ChecksumMismatch);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment