We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4cce5 commit bd29ef9Copy full SHA for bd29ef9
middleware/rate_limiter.go
@@ -170,6 +170,9 @@ type (
170
/*
171
NewRateLimiterMemoryStore returns an instance of RateLimiterMemoryStore with
172
the provided rate (as req/s). The provided rate less than 1 will be treated as zero.
173
+Also rate between 0 and 1 will be treated as zero.
174
+for more info check out Limiter docs - https://pkg.go.dev/golang.org/x/time/rate#Limit.
175
+
176
Burst and ExpiresIn will be set to default values.
177
178
Example (with 20 requests/sec):
0 commit comments