Fix async client timeout (#1617)
# What does this PR do? Fixes #1616 According to the [aiohttp.ClientTimeout docs](https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientTimeout), the arguments should be in seconds. This PR removes the multiplication by 60. @OlivierDehaene OR @Narsil
This commit is contained in:
parent
5a3903ba99
commit
9ed4d2c780
|
@ -424,7 +424,7 @@ class AsyncClient:
|
||||||
self.base_url = base_url
|
self.base_url = base_url
|
||||||
self.headers = headers
|
self.headers = headers
|
||||||
self.cookies = cookies
|
self.cookies = cookies
|
||||||
self.timeout = ClientTimeout(timeout * 60)
|
self.timeout = ClientTimeout(timeout)
|
||||||
|
|
||||||
async def chat(
|
async def chat(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue