common, core: fix goimports warning (#1972)

This commit is contained in:
wit liu 2026-01-27 11:23:31 +08:00 committed by GitHub
parent 5190df67d8
commit b1c239de97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ func (d *ExpTimeoutDuration) GetTimeoutDuration(currentRound, highestRound types
power := float64(1)
// below statement must be true, just to prevent negative result
if highestRound < currentRound {
exp := min(uint8(currentRound-highestRound) - 1, d.maxExponent)
exp := min(uint8(currentRound-highestRound)-1, d.maxExponent)
power = math.Pow(d.base, float64(exp))
}
return d.duration * time.Duration(power)