You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NewRateLimiterMemoryStoreWithConfig returns an instance of RateLimiterMemoryStore
191
-
with the provided configuration. Rate must be provided. Burst will be set to the value of
192
+
with the provided configuration. Rate must be provided. Burst will be set to the rounded down value of
192
193
the configured rate if not provided or set to 0.
193
194
194
195
The build-in memory store is usually capable for modest loads. For higher loads other
@@ -225,7 +226,7 @@ func NewRateLimiterMemoryStoreWithConfig(config RateLimiterMemoryStoreConfig) (s
225
226
// RateLimiterMemoryStoreConfig represents configuration for RateLimiterMemoryStore
226
227
typeRateLimiterMemoryStoreConfigstruct {
227
228
Rate rate.Limit// Rate of requests allowed to pass as req/s. For more info check out Limiter docs - https://pkg.go.dev/golang.org/x/time/rate#Limit.
228
-
Burstint// Burst additionally allows a number of requests to pass when rate limit is reached
229
+
Burstint// Burst is maximum number of requests to pass at the same moment. It additionally allows a number of requests to pass when rate limit is reached.
229
230
ExpiresIn time.Duration// ExpiresIn is the duration after that a rate limiter is cleaned up
0 commit comments