mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
10d95a39ac
On an instance that routes its days with Valhalla (the TREK services by default), a day the relay could not answer in time was drawn by OSRM and kept only under the OSRM key. The next visit missed the Valhalla key, asked the relay again and waited out its deadline, up to twelve seconds a day, before the kept road showed, so every reload showed straight lines first. OSRM's answer now stands in for such a day for an hour under a key of its own, on the device only. Reopening the trip draws it at once; after the hour the relay is asked again and its answer becomes the day's. Days that avoid something keep asking Valhalla, since the stand-in drives the road they mean to leave out. Closes #3228