Skip to content

Commit

Permalink
Update comment. Remove incorrect clippy::unused_self while I'm here.
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Apr 10, 2024
1 parent 7b5de65 commit 412dc22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neqo-transport/src/cc/classic_cc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ impl<T: WindowAdjustment> CongestionControl for ClassicCongestionControl<T> {
pkt.size
);
// BIF is set to 0 on a path change, but in case that was because of a simple rebinding
// event, we may still get ACKs for packets sent before the rebinding.
// event, we may still declare packets lost that were sent before the rebinding.
self.bytes_in_flight = self.bytes_in_flight.saturating_sub(pkt.size);
}
qlog::metrics_updated(
Expand Down Expand Up @@ -518,7 +518,6 @@ impl<T: WindowAdjustment> ClassicCongestionControl<T> {
true
}

#[allow(clippy::unused_self)]
fn app_limited(&self) -> bool {
if self.bytes_in_flight >= self.congestion_window {
false
Expand Down

0 comments on commit 412dc22

Please sign in to comment.