Added global timeout and import for httpx

This commit is contained in:
Logan Cusano
2025-04-27 03:46:44 -04:00
parent de8570d014
commit 56d7d8e8fe
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class DRBCDBAPI(BaseAPI):
super().__init__()
self.base_url = base_url
# Use an AsyncClient for making asynchronous requests
self._client = httpx.AsyncClient()
self._client = httpx.AsyncClient(timeout=30)
# --- OP25 Endpoints ---