}
oldRPS := r.effectiveRPS
r.computeEffectiveRPSAndSourceLocked()
newRPS := r.effectiveRPS
// If the effective RPS has changed, we need to update the rate limiters.
if oldRPS != newRPS {
r.updateRatelimitLocked()
r.updateSimpleRateLimitWithBurstLocked(defaultBurstDuration)
}
// Internally, checks if the per-key rate limit has changed and updates it accordingly.
}