mirror of https://github.com/grpc/grpc-go.git
service config: make retryThrottling maxTokens setting of 1000 valid (#2670)
This commit is contained in:
parent
2369d0a0a1
commit
a1a84e16d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue