From 8cfa15d41554cec8a65c2cad60a9722c99b7e1ae Mon Sep 17 00:00:00 2001 From: Benny Daon Date: Tue, 27 Feb 2024 17:00:19 +0200 Subject: [PATCH] Fix linter error had to run the linter with --fix to get cleaner code --- rtx_timer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rtx_timer.go b/rtx_timer.go index 13861813..823186c3 100644 --- a/rtx_timer.go +++ b/rtx_timer.go @@ -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. @@ -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,