go-chi / httprate

net/http rate limiter middleware
MIT License
270 stars 18 forks source link

Fix LimitCounter interface. #12

Closed creack closed 2 years ago

creack commented 2 years ago

I struggled quite a bit on that one as I was only looking at the interface when implementing a custom limiter. Looking at the localCounter implementation, I realized the interface was in the wrong order.

pkieltyka commented 2 years ago

thanks :D