mirror of
https://github.com/soypat/lneto.git
synced 2026-09-05 22:39:06 +00:00
chore: bump minimum Go version to 1.24 (#85)
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
This commit is contained in:
+4
-8
@@ -13,10 +13,8 @@ func BackoffConnRW(consecutiveBackoffs uint) {
|
||||
maxShift = 22
|
||||
_overflowCheck = minWait << maxShift
|
||||
)
|
||||
wait := minWait << min(consecutiveBackoffs, maxShift)
|
||||
if wait > maxWait {
|
||||
wait = maxWait
|
||||
}
|
||||
shifted := minWait << min(consecutiveBackoffs, maxShift)
|
||||
wait := min(shifted, maxWait)
|
||||
time.Sleep(time.Duration(wait))
|
||||
}
|
||||
|
||||
@@ -31,9 +29,7 @@ func BackoffStackProto(consecutiveBackoffs uint) {
|
||||
maxShift = 22
|
||||
_overflowCheck = minWait << maxShift
|
||||
)
|
||||
wait := minWait << min(consecutiveBackoffs, maxShift)
|
||||
if wait > maxWait {
|
||||
wait = maxWait
|
||||
}
|
||||
shifted := minWait << min(consecutiveBackoffs, maxShift)
|
||||
wait := min(shifted, maxWait)
|
||||
time.Sleep(time.Duration(wait))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user