watchdog/internal/ratelimit
NotAShelf 7ecc03ac19
various: cleanup
Fixes a status code conflict in `LimitedResponseWriter`, and a clock
skew bug that I probably introduced last time I dealt with time. I hate
computers.

We now use `tie.Since()`, which employs a monotonic clock that is immune
to system wall clock changes. 

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iec3147c21c5a295170f48cbf1a4620596a6a6964
2026-05-25 10:19:21 +03:00
..
limiter.go various: cleanup 2026-05-25 10:19:21 +03:00
limiter_test.go internal/ratelimit: prevent time drift in TokenBucket refills 2026-03-02 22:38:23 +03:00