From facfc87ee23aae9b591fefd7c08e4ad8dea98e2d Mon Sep 17 00:00:00 2001 From: WendelHime <6754291+WendelHime@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:47:16 -0300 Subject: [PATCH] fix: removing error from Close call --- dialer/bandit.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dialer/bandit.go b/dialer/bandit.go index 508504445..a562ae73b 100644 --- a/dialer/bandit.go +++ b/dialer/bandit.go @@ -192,12 +192,11 @@ func normalizeReceiveSpeed(dataRecv uint64) float64 { return (float64(dataRecv) / secondsForSample) / topExpectedBps } -func (o *BanditDialer) Close() error { +func (o *BanditDialer) Close() { log.Debug("Closing all dialers") for _, d := range o.dialers { d.Stop() } - return nil } func newDataTrackingConn(conn net.Conn, dataRecv *atomic.Uint64) *dataTrackingConn {