utils: gofumpt http retry formatting

This commit is contained in:
Alix-007 2026-03-30 22:08:21 +08:00
parent 345d4fddc9
commit 711685192c

View file

@ -10,8 +10,10 @@ import (
const maxRetries = 3 const maxRetries = 3
var retryDelayUnit = time.Second var (
var maxRetrySleepDuration = 1 * time.Minute retryDelayUnit = time.Second
maxRetrySleepDuration = 1 * time.Minute
)
func shouldRetry(statusCode int) bool { func shouldRetry(statusCode int) bool {
return statusCode == http.StatusTooManyRequests || return statusCode == http.StatusTooManyRequests ||