Skip to content

Commit

Permalink
fix: use debug_assert! instead of assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcsmith authored Oct 23, 2023
1 parent c25b263 commit c246a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/scion/src/reliable/relay_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl ReliableRelayProtocol {
State::Registered { transmit_queue, .. } if !transmit_queue.is_empty() => {
// The value 2 * MAX_TRANSMIT_BURST must be at most isize, which is the limit for
// number of Vec elements.
assert!(Self::MAX_TRANSMIT_BURST <= (isize::MAX >> 1) as usize);
debug_assert!(Self::MAX_TRANSMIT_BURST <= (isize::MAX >> 1) as usize);

let transmit_burst = min(transmit_queue.len(), Self::MAX_TRANSMIT_BURST);
let buffer_length = transmit_queue
Expand Down

0 comments on commit c246a82

Please sign in to comment.