utils: gofumpt http retry formatting

This commit is contained in:
Alix-007
2026-03-30 22:08:21 +08:00
parent 345d4fddc9
commit 711685192c
+4 -2
View File
@@ -10,8 +10,10 @@ import (
const maxRetries = 3
var retryDelayUnit = time.Second
var maxRetrySleepDuration = 1 * time.Minute
var (
retryDelayUnit = time.Second
maxRetrySleepDuration = 1 * time.Minute
)
func shouldRetry(statusCode int) bool {
return statusCode == http.StatusTooManyRequests ||