From ba43a367cf3fabc47879216dbce6ae9b6ff50b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 5 Dec 2023 15:15:57 +0100 Subject: [PATCH] fix aiohttp --- livekit-api/livekit/api/livekit_api.py | 2 +- livekit-api/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/livekit-api/livekit/api/livekit_api.py b/livekit-api/livekit/api/livekit_api.py index cb2b48f7..bfb5be80 100644 --- a/livekit-api/livekit/api/livekit_api.py +++ b/livekit-api/livekit/api/livekit_api.py @@ -13,7 +13,7 @@ def __init__( api_key: Optional[str] = None, api_secret: Optional[str] = None, *, - timeout: float = 60, # 1 minutes by default + timeout: aiohttp.ClientTimeout = aiohttp.ClientTimeout(total=60), # 60 seconds ): url = url or os.getenv("LIVEKIT_URL") api_key = api_key or os.getenv("LIVEKIT_API_KEY") diff --git a/livekit-api/setup.py b/livekit-api/setup.py index 5dd64f75..bc9a479c 100644 --- a/livekit-api/setup.py +++ b/livekit-api/setup.py @@ -49,7 +49,7 @@ python_requires=">=3.7.0", install_requires=[ "pyjwt>=2.0.0", - "aiohttp>=3.8.0", + "aiohttp>=3.9.0", "protobuf>=3.1.0", "types-protobuf>=3.1.0", "livekit-protocol>=0.2.0",