From fa5aba24c2bbf1d9ee1013d28a76078aed88ed86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Mon, 13 Nov 2023 17:59:25 -0800 Subject: [PATCH] loop is deprecated --- livekit-api/livekit/api/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/livekit-api/livekit/api/api.py b/livekit-api/livekit/api/api.py index 68f5d60d..fe531d3e 100644 --- a/livekit-api/livekit/api/api.py +++ b/livekit-api/livekit/api/api.py @@ -10,10 +10,9 @@ def __init__( api_key: str = os.getenv("LIVEKIT_API_KEY", ""), api_secret: str = os.getenv("LIVEKIT_API_SECRET", ""), *, - loop: Optional[asyncio.AbstractEventLoop] = asyncio.get_event_loop(), timeout: float = 60, # 1 minutes by default ): - self._session = aiohttp.ClientSession(timeout=timeout, loop=loop) + self._session = aiohttp.ClientSession(timeout=timeout) self._room = RoomService(url, api_key, api_secret, self._session) self._ingress = IngressService(url, api_key, api_secret, self._session) self._egress = EgressService(url, api_key, api_secret, self._session)