utils: gofumpt http retry formatting
This commit is contained in:
1 parent
345d4fddc9
commit
711685192c
1 file changed
+4
-2
@@ -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 ||
|
||||
|
||||
Reference in new issue
Block a user