mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
utils: gofumpt http retry formatting
This commit is contained in:
@@ -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