Skip to content

Commit

Permalink
Use RateBurst in RateLimitInterceptorProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSnowden committed Oct 5, 2023
1 parent 9b877fa commit 9c74b21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/frontend/fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ func RateLimitInterceptorProvider(

return interceptor.NewRateLimitInterceptor(
configs.NewRequestToRateLimiter(
quotas.NewDefaultIncomingRateLimiter(rateFn),
quotas.NewDefaultIncomingRateLimiter(rateFn),
quotas.NewDefaultIncomingRateLimiter(namespaceReplicationInducingRateFn),
quotas.NewDefaultIncomingRateLimiter(rateFn),
quotas.NewDefaultIncomingRateBurst(rateFn),
quotas.NewDefaultIncomingRateBurst(rateFn),
quotas.NewDefaultIncomingRateBurst(namespaceReplicationInducingRateFn),
quotas.NewDefaultIncomingRateBurst(rateFn),
serviceConfig.OperatorRPSRatio,
),
map[string]int{},
Expand Down

0 comments on commit 9c74b21

Please sign in to comment.