Skip to content

Commit

Permalink
single debug_assert line
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Nov 26, 2024
1 parent 550922b commit c76770a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions neqo-transport/src/recovery/sent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,7 @@ impl SentPackets {
// > values in **descending packet number order**.
//
// <https://www.rfc-editor.org/rfc/rfc9000.html#section-19.3.1>
if let Some(prev_start) = previous_range_start {
debug_assert!(
*range.end() < prev_start,
"ACK ranges not in descending order: current range end {}, previous range start {prev_start}",
*range.end(),
);
}
debug_assert!(previous_range_start.map_or(true, |s| s > *range.end()));
previous_range_start = Some(*range.start());

// Thus none of the following ACK ranges will acknowledge packets in
Expand Down

0 comments on commit c76770a

Please sign in to comment.