Skip to content

Commit

Permalink
Name change
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Mar 4, 2025
1 parent 637b296 commit 95111c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions quic/s2n-quic-core/src/connection/limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl<'a> UpdatableLimits<'a> {
UpdatableLimits(limits)
}

pub fn stream_batch_size(&mut self, size: u8) {
pub fn with_stream_batch_size(&mut self, size: u8) {
self.0.stream_batch_size = size;
}
}
Expand Down Expand Up @@ -489,7 +489,7 @@ mod tests {
assert_eq!(limits.stream_batch_size, 1);
let mut updatable_limits = UpdatableLimits::new(&mut limits);
let new_size = 10;
updatable_limits.stream_batch_size(new_size);
updatable_limits.with_stream_batch_size(new_size);
assert_eq!(limits.stream_batch_size, new_size);
}
}
2 changes: 1 addition & 1 deletion quic/s2n-quic/src/tests/connection_limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn connection_limits() {
assert_eq!(info.remote_address.port(), port);
assert_eq!(*info.server_name.unwrap(), "localhost".into());
assert_eq!(info.application_protocol, "h3");
limits.stream_batch_size(10);
limits.with_stream_batch_size(10);
}
}

Expand Down

0 comments on commit 95111c3

Please sign in to comment.