From 62bf37512239a98570193d0536ff889243ac4f7b Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Wed, 15 May 2024 10:11:29 +0200 Subject: [PATCH] Godoc fix --- config/rate_limit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rate_limit.go b/config/rate_limit.go index 5b9ce78fa6c..86bb6575dd7 100644 --- a/config/rate_limit.go +++ b/config/rate_limit.go @@ -10,7 +10,7 @@ type RateLimit struct { // EnableFixedWindow enables fixed window rate limiting. EnableFixedWindowRateLimiter bool `json:"enable_fixed_window_rate_limiter"` - // Redis based rate limiter with fixed window. Provides 100% rate limiting accuracy, but require two additional Redis roundtrip for each request. + // Redis based rate limiter with sliding log. Provides 100% rate limiting accuracy, but require two additional Redis roundtrip for each request. EnableRedisRollingLimiter bool `json:"enable_redis_rolling_limiter"` // To enable, set to `true`. The sentinel-based rate limiter delivers a smoother performance curve as rate-limit calculations happen off-thread, but a stricter time-out based cool-down for clients. For example, when a throttling action is triggered, they are required to cool-down for the period of the rate limit.