LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://lacmta.github.io/metro-api-v2/
0 stars 3 forks source link

Refactor main.py: Remove asyncio and modify retry_on_failure function #471

Closed albertkun closed 8 months ago

albertkun commented 8 months ago

This pull request refactors the main.py file by removing the asyncio module and modifying the retry_on_failure function. The changes include removing the run_coroutine function and updating the retry_on_failure function to directly call the gtfs_rt_helper.update_gtfs_realtime_data function. This improves the code readability and simplifies the logic.