Files
Michael SnowdenandGitHub 44d5f69cfb Add quotas.DelayedRateLimiter (#4688)
<!-- Describe what has changed in this PR -->
**What changed?**
I added `quotas.DelayedRateLimiter`, which adds a delay before an input
`quotas.RateLimiter` actually takes effect. I also added some utilities
to make its implementation easier. The delayed rate limiter depends on
the new rate limiter delegator and no-op rate limiter structs.

<!-- Tell your future self why have you made these changes -->
**Why?**
In some cases in the history service, we want to delay rate limiters for
a short period after startup.

<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
There is 100% test coverage for the new code.

<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
None. These are just additions.

<!-- Is this PR a hotfix candidate or require that a notification be
sent to the broader community? (Yes/No) -->
**Is hotfix candidate?**
No.
2023-07-28 01:04:05 +00:00
..