Fix grpcserver rate limiter: move to Server field

The package-level defaultRateLimiter drained its token bucket
across all test cases, causing later tests to hit ResourceExhausted.
Move rateLimiter from a package-level var to a *grpcRateLimiter field
on Server; New() allocates a fresh instance (10 req/s, burst 10) per
server. Each test's newTestEnv() constructs its own Server, so tests
no longer share limiter state.

Production behaviour is unchanged: a single Server is constructed at
startup and lives for the process lifetime.
This commit is contained in:
2026-03-11 19:20:32 -07:00
parent a80242ae3e
commit 4596ea08ab
12 changed files with 276 additions and 123 deletions

2
web/static/htmx.min.js vendored Normal file
View File

@@ -0,0 +1,2 @@
/* htmx placeholder — replace with actual htmx.min.js from https://unpkg.com/htmx.org */
console.warn("MCIAS: htmx.min.js is a placeholder. Replace with the real htmx library.");