mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 03:32:19 +00:00
The branch read the /states/all cooldown from /api/flights and never set one from /tracks/all, which is backwards for an API that meters the two separately: a flights cooldown blocked backfill that still had credits, and a /tracks 429 left every other icao24 free to ask again. tracks.js now keeps a cooldown for the /tracks bucket, armed by a 429 from /tracks/all with OpenSky's retry-after (opensky.js exports its existing parser so both buckets read the header the same way). The two routes get separate limiters, and a limiter refusal sends Retry-After 60, the window, rather than 10.