doc: replace "leaky" with "token" bucket (#7881)

Mostly we refer consistently to token bucket, but these two places (one
of which is soon to be removed) still had the "leaky" terminology, which
is potentially confusing.
This commit is contained in:
Jacob Hoffman-Andrews 2024-12-10 16:39:30 -08:00 committed by GitHub
parent 1b7b9a776b
commit 40e100c297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1471,7 +1471,7 @@ func (ra *RegistrationAuthorityImpl) checkCertificatesPerFQDNSetLimit(ctx contex
}
return nil
} else {
// Evaluate the rate limit using a leaky bucket algorithm. The bucket
// Evaluate the rate limit using a token bucket algorithm. The bucket
// has a capacity of threshold and is refilled at a rate of 1 token per
// limit.Window/threshold from the time of each issuance timestamp. The
// timestamps start from the most recent issuance and go back in time.

View File

@ -31,7 +31,7 @@ const (
var allowedDecision = &Decision{allowed: true, remaining: math.MaxInt64}
// Limiter provides a high-level interface for rate limiting requests by
// utilizing a leaky bucket-style approach.
// utilizing a token bucket-style approach.
type Limiter struct {
// source is used to store buckets. It must be safe for concurrent use.
source Source