Skip to content

Commit 29f0177

Browse files
committed
Spelling and typos.
Signed-off-by: Steve Simpson <[email protected]>
1 parent 0869be7 commit 29f0177

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/distributor/distributor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func TestDistributor_PushIngestionRateLimiter(t *testing.T) {
414414
{metadata: 1, expectedError: httpgrpc.Errorf(http.StatusTooManyRequests, "ingestion rate limit (5) exceeded while adding 0 samples and 1 metadata")},
415415
},
416416
},
417-
"unhappy ingestors: rate limit should be unaffected when ingestion fails": {
417+
"unhappy ingesters: rate limit should be unaffected when ingestion fails": {
418418
distributors: 1,
419419
ingestionRateStrategy: validation.LocalIngestionRateStrategy,
420420
ingestionRate: 10,

pkg/util/limiter/rate_limiter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NewRateLimiter(strategy RateLimiterStrategy, recheckPeriod time.Duration) *
5454
// reservation of tokens can be canceled using CancelAt on the returned object.
5555
func (l *RateLimiter) AllowN(now time.Time, tenantID string, n int) *Reservation {
5656

57-
// Using ReserveN allows cancalation of the reservation, but
57+
// Using ReserveN allows cancellation of the reservation, but
5858
// the semantics are subtly different to AllowN.
5959
r := l.getTenantLimiter(now, tenantID).ReserveN(now, n)
6060
if !r.OK() {

0 commit comments

Comments
 (0)