mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Addresses review feedback on concurrent scans (SCAN_WORKERS > 1), where the handler singleton is shared across in-flight ROM lookups. Read the session after awaiting the rate limiter rather than before, so a request paced behind a peer's renewal uses the current session instead of the one that was live when it queued, and bails out if the session went away. Acquire the limiter before the /init renewal as well, so a wave of concurrent 403s can't burst past the cap that search requests respect. The endpoint fixture fetch is left unpaced: it targets GitHub, not HLTB. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>