Skip to content

Commit

Permalink
changes for review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
slahirucd7 committed Jan 30, 2024
1 parent 590cd0c commit f35d635
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions adapter/internal/discovery/xds/rate_limiter_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ func (r *rateLimitPolicyCache) AddAPILevelRateLimitPolicies(apiID string, mgwSwa
return nil
}
level := strings.ToUpper(mgwSwagger.RateLimitLevel)
if mgwSwagger.RateLimitLevel == envoyconf.RateLimitPolicyAPILevel {
loggers.LoggerXds.Infof("API level rate-limiting enabled for the API: %q", apiID)
} else {
loggers.LoggerXds.Infof("Operation level rate-limiting enabled for the API: %q", apiID)
}
loggers.LoggerXds.Infof("Rate-limiting enabled for the API: %q, level: %q", apiID, level)

var rlsConfigs []*rls_config.RateLimitDescriptor
if level == envoyconf.RateLimitPolicyAPILevel {
Expand Down

0 comments on commit f35d635

Please sign in to comment.