Skip to content

Commit

Permalink
Add a timeout to Octopoes' XTDB client
Browse files Browse the repository at this point in the history
  • Loading branch information
originalsouth committed Oct 30, 2024
1 parent 1da03ad commit 5761448
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion octopoes/octopoes/xtdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class XTDBStatus(BaseModel):
@functools.cache
def _get_xtdb_http_session(base_url: str) -> httpx.Client:
return httpx.Client(
base_url=base_url, headers={"Accept": "application/json"}, transport=(httpx.HTTPTransport(retries=3))
base_url=base_url,
headers={"Accept": "application/json"},
transport=(httpx.HTTPTransport(retries=3)),
timeout=60,
)


Expand Down

0 comments on commit 5761448

Please sign in to comment.