labstack / echo

High performance, minimalist Go web framework
https://echo.labstack.com
MIT License
29.01k stars 2.21k forks source link

fix(middleware): Fix Allow method of RateLimiterMemoryStore #2618

Closed champon1020 closed 1 month ago

champon1020 commented 3 months ago

What

Modify (*RateLimiterMemoryStore).Allow method in rate limiter middleware.

Why

Currently, Allow method acts unexpected behavior that it denies the request nevertheless subtract of lastSeen and now exceeds expiresIn.