289
return
290
}
292
>
slp := makeSimpleLimiterParams(rate, burstDuration)
293
>
if slp == r.perKeyLimit {
294
// No change in per-key rate limit, no need to update.
295
return
296
}
298
>
299
>
// Clip to handle the case where we have increased from a zero or very low limit and had
300
>
// ready times in the far future.
301
>
var updates map[string]simpleLimiter
302
>
now := r.timeSource.Now().UnixNano()
303
>
it := r.perKeyReady.Iterator()
304
>
for it.HasNext() {
305
e := it.Next()
306
sl := e.Value().(simpleLimiter) //nolint:revive