proxyd: remove unused error (#10444)

This commit is contained in:
Hteev Oli 2024-05-09 00:20:35 +08:00 committed by GitHub
parent 0a2c79cafa
commit 2f424fd5c6

@ -156,11 +156,7 @@ func NewServer(
overrideLims := make(map[string]FrontendRateLimiter)
globalMethodLims := make(map[string]bool)
for method, override := range rateLimitConfig.MethodOverrides {
var err error
overrideLims[method] = limiterFactory(time.Duration(override.Interval), override.Limit, method)
if err != nil {
return nil, err
}
if override.Global {
globalMethodLims[method] = true