Closed champon1020 closed 1 month ago
Modify (*RateLimiterMemoryStore).Allow method in rate limiter middleware.
(*RateLimiterMemoryStore).Allow
Currently, Allow method acts unexpected behavior that it denies the request nevertheless subtract of lastSeen and now exceeds expiresIn.
Allow
lastSeen
now
expiresIn
What
Modify
(*RateLimiterMemoryStore).Allow
method in rate limiter middleware.Why
Currently,
Allow
method acts unexpected behavior that it denies the request nevertheless subtract oflastSeen
andnow
exceedsexpiresIn
.