Added global timeout and import for httpx
This commit is contained in:
@@ -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 ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user