From 1c24ab8c2b277949191487b859ce0b8b71c45e24 Mon Sep 17 00:00:00 2001 From: harukitosa <13haruki28@gmail.com> Date: Sat, 22 May 2021 21:18:04 +0900 Subject: [PATCH] fix rateLimiteDoc --- middleware/rate_limiter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middleware/rate_limiter.go b/middleware/rate_limiter.go index 46a310d9..0291eb45 100644 --- a/middleware/rate_limiter.go +++ b/middleware/rate_limiter.go @@ -169,7 +169,8 @@ type ( /* NewRateLimiterMemoryStore returns an instance of RateLimiterMemoryStore with -the provided rate (as req/s). Burst and ExpiresIn will be set to default values. +the provided rate (as req/s). The provided rate less than 1 will be treated as zero. +Burst and ExpiresIn will be set to default values. Example (with 20 requests/sec):