Skip to content

Commit

Permalink
Fix wrong Consolidation cast in codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Feb 5, 2024
1 parent 305c732 commit a6ce428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commons/zenoh-codec/src/zenoh/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ where

// Body
if consolidation != &Consolidation::default() {
self.write(&mut *writer, *consolidation as u64)?;
self.write(&mut *writer, *consolidation)?;
}
if !parameters.is_empty() {
self.write(&mut *writer, parameters)?;
Expand Down
2 changes: 1 addition & 1 deletion commons/zenoh-codec/src/zenoh/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ where

// Body
if consolidation != &Consolidation::default() {
self.write(&mut *writer, *consolidation as u64)?;
self.write(&mut *writer, *consolidation)?;
}

// Extensions
Expand Down

0 comments on commit a6ce428

Please sign in to comment.