Unverified Commit 9ed4d2c7 authored by Hugo Abonizio's avatar Hugo Abonizio Committed by GitHub
Browse files

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
parent 5a3903ba
...@@ -424,7 +424,7 @@ class AsyncClient: ...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment