From d604704563de63e42a352ffc51b6d633d9d595e3 Mon Sep 17 00:00:00 2001 From: Kaan Karakaya Date: Tue, 12 Oct 2021 22:52:46 +0300 Subject: [PATCH] Fix rate limiter example time.Minutes is doesn't exist --- middleware/rate_limiter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/rate_limiter.go b/middleware/rate_limiter.go index 0291eb45..edcc56a5 100644 --- a/middleware/rate_limiter.go +++ b/middleware/rate_limiter.go @@ -199,7 +199,7 @@ Characteristics: Example: limiterStore := middleware.NewRateLimiterMemoryStoreWithConfig( - middleware.RateLimiterMemoryStoreConfig{Rate: 50, Burst: 200, ExpiresIn: 5 * time.Minutes}, + middleware.RateLimiterMemoryStoreConfig{Rate: 50, Burst: 200, ExpiresIn: 5 * time.Minute}, ) */ func NewRateLimiterMemoryStoreWithConfig(config RateLimiterMemoryStoreConfig) (store *RateLimiterMemoryStore) {