()
| 26 | |
| 27 | |
| 28 | async def startup() -> None: |
| 29 | global _client |
| 30 | _client = httpx.AsyncClient( |
| 31 | timeout=120.0, |
| 32 | limits=httpx.Limits(max_connections=100, max_keepalive_connections=20), |
| 33 | ) |
| 34 | logger.info("Shared HTTP client initialized") |
| 35 | |
| 36 | |
| 37 | async def shutdown() -> None: |