Skip to content

Commit

Permalink
config: progress sanitize after correction
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Sep 15, 2020
1 parent 1570a6c commit 580afa0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,11 @@ func (cfg *Config) validate() error {
if cfg.OnHTTP5xxRetries < 0 || cfg.OnHTTP5xxRetries > 5 {
cfg.OnHTTP5xxRetries = 5
log.Warn("on_http_5xx_retries value out of range (0-5). was reset to 5")
return nil
}

if cfg.OnHTTP5xxRetryInterval < 1 || cfg.OnHTTP5xxRetryInterval > 3 {
cfg.OnHTTP5xxRetryInterval = 3
log.Warn("on_http_5xx_retry_interval value out of range (1-3). was reset to 3")
return nil
}

return nil
Expand Down

0 comments on commit 580afa0

Please sign in to comment.