Skip to content

Commit

Permalink
service config: make retryThrottling maxTokens setting of 1000 valid (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored Mar 7, 2019
1 parent 2369d0a commit a1a84e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func parseServiceConfig(js string) (ServiceConfig, error) {

if sc.retryThrottling != nil {
if sc.retryThrottling.MaxTokens <= 0 ||
sc.retryThrottling.MaxTokens >= 1000 ||
sc.retryThrottling.MaxTokens > 1000 ||
sc.retryThrottling.TokenRatio <= 0 {
// Illegal throttling config; disable throttling.
sc.retryThrottling = nil
Expand Down

0 comments on commit a1a84e1

Please sign in to comment.