R56: honor RateLimit config as sustained req rate

This commit is contained in:
2026-08-13 15:49:47 +01:00
parent ac2fdfe09d
commit 49d1942de9
2 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ func NewWithContext(ctx context.Context, config *Config, next http.Handler, name
defaultSystemScopes := []string{"openid", "profile", "email"}
return deduplicateScopes(mergeScopes(defaultSystemScopes, userProvidedScopes))
}(),
limiter: rate.NewLimiter(rate.Every(time.Second), config.RateLimit),
limiter: rate.NewLimiter(rate.Limit(config.RateLimit), config.RateLimit),
tokenCache: cacheManager.GetSharedTokenCache(),
httpClient: httpClient,
tokenHTTPClient: tokenHTTPClient,