rate limiting: fix bug
rate limiting: fix bug: a task in smol-software-harbor (Harbor dataset). After a client has been idle for a while, the token bucket in limiter.py lets through a burst larger than its capacity ( test long idle does not exceed capacity fails). A bucket must never hold more than capacity tokens. Fix…
The task
After a client has been idle for a while, the token bucket in `limiter.py` lets through a burst larger than its capacity (`test_long_idle_does_not_exceed_capacity` fails). A bucket must never hold more than `capacity` tokens. Fix it and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.