Remove nest-asyncio dependency
Merged
MI
9mo ago+107+107+012345678901234567890123456789-56-56-01234567890123456789
Summary by cubic
Removes the nest-asyncio dependency and switches replay metrics fetching to a sync HTTP path when an event loop is running, avoiding loop patching. This unblocks the Python 3.14 upgrade for STG-1374.
-
Dependencies
- Removed nest-asyncio from pyproject.toml.
-
Refactors
- Added _get_replay_metrics_sync and shared _parse_replay_metrics_data in api.py.
- In main.py, use _get_replay_metrics_sync if a loop is running; otherwise use asyncio.run(_get_replay_metrics()).
- Removed nest_asyncio import and apply calls.