Skip to content

Commit

Permalink
feat(async req): remove timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Dec 5, 2024
1 parent a6e70d2 commit 3bad003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyTigerGraph/pytgasync/pyTigerGraphBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di
_headers, _data, verify = self._prep_req(
authMode, headers, url, method, data)

async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=None) as client:
if jsonData:
res = await client.request(method, url, headers=_headers, json=_data, params=params)
else:
Expand Down Expand Up @@ -161,7 +161,7 @@ async def _req(self, method: str, url: str, authMode: str = "token", headers: di
else:
url = newRestppUrl + '/' + \
'/'.join(url.split(':')[2].split('/')[1:])
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=None) as client:
if jsonData:
res = await client.request(method, url, headers=_headers, json=_data, params=params)
else:
Expand Down

0 comments on commit 3bad003

Please sign in to comment.