Skip to content

Commit

Permalink
fix(transport/recovery): remove needless mut (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Jun 17, 2024
1 parent 6664452 commit 290d1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-transport/src/recovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ impl LossRecovery {

/// Calculate when the next timeout is likely to be. This is the earlier of the loss timer
/// and the PTO timer; either or both might be disabled, so this can return `None`.
pub fn next_timeout(&mut self, rtt: &RttEstimate) -> Option<Instant> {
pub fn next_timeout(&self, rtt: &RttEstimate) -> Option<Instant> {
let loss_time = self.earliest_loss_time(rtt);
let pto_time = self.earliest_pto(rtt);
qtrace!(
Expand Down

0 comments on commit 290d1f0

Please sign in to comment.