SetTransientErrorCooldownSeconds configures cooldowns for 408/500/502/503/504. 0 keeps the legacy default; negative values disable transient error cooldowns.
(seconds int)
| 99 | // SetTransientErrorCooldownSeconds configures cooldowns for 408/500/502/503/504. |
| 100 | // 0 keeps the legacy default; negative values disable transient error cooldowns. |
| 101 | func SetTransientErrorCooldownSeconds(seconds int) { |
| 102 | transientErrorCooldownSeconds.Store(int64(seconds)) |
| 103 | } |
| 104 | |
| 105 | func quotaCooldownDisabledForAuth(auth *Auth) bool { |
| 106 | return quotaCooldownDisabledForAuthWithConfig(auth, nil) |
no outgoing calls