From 0b5e11a5dde0595b1adcf01d7dc9a5072b562a2c Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sun, 17 Nov 2024 06:40:58 +0100 Subject: [PATCH] refactor: refactoring of code to meet all golangci-lint requirements --- internal/middlewares/rate-limit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/middlewares/rate-limit.go b/internal/middlewares/rate-limit.go index 3a1ac09..e63cb04 100644 --- a/internal/middlewares/rate-limit.go +++ b/internal/middlewares/rate-limit.go @@ -80,7 +80,7 @@ func (rl *RateLimiter) RateLimitMiddleware() mux.MiddlewareFunc { RespondWithError(w, http.StatusTooManyRequests, fmt.Sprintf("%d Too many requests, API requests limit exceeded. Please try again later", http.StatusTooManyRequests)) } } - // Proceed to the next handler if requests limit is not exceeded + // Proceed to the next handler if the request limit is not exceeded next.ServeHTTP(w, r) }) }