Skip to content

Commit

Permalink
Fix incorrect size in split_transmit
Browse files Browse the repository at this point in the history
This didn't impact any tests, but was confusing.
  • Loading branch information
Ralith committed Apr 26, 2024
1 parent fd336c8 commit 5e0d293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/tests/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ fn split_transmit(transmit: Transmit, mut buffer: Bytes) -> Vec<(Transmit, Bytes
transmits.push((
Transmit {
destination: transmit.destination,
size: buffer.len(),
size: contents.len(),
ecn: transmit.ecn,
segment_size: None,
src_ip: transmit.src_ip,
Expand Down

0 comments on commit 5e0d293

Please sign in to comment.