utils: remove unused now parameter from RTTStats.UpdateRTT (#4780)

This commit is contained in:
Marten Seemann
2024-12-22 14:50:31 +08:00
committed by GitHub
parent a584e58099
commit 5dbb46dcc1
10 changed files with 57 additions and 59 deletions

View File

@@ -58,7 +58,7 @@ func (r *RTTStats) PTO(includeMaxAckDelay bool) time.Duration {
}
// UpdateRTT updates the RTT based on a new sample.
func (r *RTTStats) UpdateRTT(sendDelta, ackDelay time.Duration, now time.Time) {
func (r *RTTStats) UpdateRTT(sendDelta, ackDelay time.Duration) {
if sendDelta <= 0 {
return
}