Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
had to run the linter with --fix to get cleaner code
  • Loading branch information
daonb authored and edaniels committed Feb 27, 2024
1 parent fb6b16b commit 8cfa15d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rtx_timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func newRTOManager(rtoMax float64) *rtoManager {
mgr.rtoMax = defaultRTOMax
}
return &mgr

}

// setNewRTT takes a newly measured RTT then adjust the RTO in msec.
Expand Down Expand Up @@ -122,8 +121,8 @@ type stopTimerLoop func()
// if maxRetrans is set to 0, it will keep retransmitting until stop() is called.
// (it will never make onRetransmissionFailure() callback.
func newRTXTimer(id int, observer rtxTimerObserver, maxRetrans uint,
rtoMax float64) *rtxTimer {

rtoMax float64,
) *rtxTimer {
timer := rtxTimer{
id: id,
observer: observer,
Expand Down

0 comments on commit 8cfa15d

Please sign in to comment.