Skip to content

Commit

Permalink
fix: removing error from Close call
Browse files Browse the repository at this point in the history
  • Loading branch information
WendelHime committed Nov 22, 2024
1 parent 0e390c9 commit facfc87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dialer/bandit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit facfc87

Please sign in to comment.