Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
8cde945e
Unverified
Commit
8cde945e
authored
Aug 18, 2025
by
nachiketb-nvidia
Committed by
GitHub
Aug 18, 2025
Browse files
fix: small build warning fix (#2504)
Signed-off-by:
nachiketb-nvidia
<
nachiketb@nvidia.com
>
parent
125be8ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/runtime/src/pipeline/network/codec/two_part.rs
lib/runtime/src/pipeline/network/codec/two_part.rs
+3
-3
No files found.
lib/runtime/src/pipeline/network/codec/two_part.rs
View file @
8cde945e
...
@@ -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
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment