From b1c239de97639209f52a0bf34995b2e8b6d29a1d Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Tue, 27 Jan 2026 11:23:31 +0800 Subject: [PATCH] common, core: fix goimports warning (#1972) --- common/countdown/exp_duration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/countdown/exp_duration.go b/common/countdown/exp_duration.go index 0f1e20c4fb..9251f451fe 100644 --- a/common/countdown/exp_duration.go +++ b/common/countdown/exp_duration.go @@ -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)