Skip to content

Commit

Permalink
Godoc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed May 15, 2024
1 parent 5c24670 commit 62bf375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 62bf375

Please sign in to comment.