You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Unique limiters for each API listener
Refactor the limit.Limiter so it can wrap the separate API httprouter
endpoints. Limiter.WrapX() calls take the handler and stats incrementer
for metrics/error counting. api.Run() replaced with Router.Run(), which
will generate an httprouter for each listener in order to be able to
associate the httprouter with a unique Limiter.
* Add listener address labeled logs to limiter
* Review feedback
* Apply suggestions from code review
Co-authored-by: Anderson Queiroz <me@andersonq.me>
* review feedback
* fix import
* Fix test
Co-authored-by: Anderson Queiroz <me@andersonq.me>
0 commit comments