Skip to content

Commit

Permalink
loop is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Nov 14, 2023
1 parent 8f99104 commit fa5aba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions livekit-api/livekit/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 16 in livekit-api/livekit/api/api.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

livekit-api/livekit/api/api.py:16:22: F821 Undefined name `RoomService`
self._ingress = IngressService(url, api_key, api_secret, self._session)

Check failure on line 17 in livekit-api/livekit/api/api.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

livekit-api/livekit/api/api.py:17:25: F821 Undefined name `IngressService`
self._egress = EgressService(url, api_key, api_secret, self._session)

Check failure on line 18 in livekit-api/livekit/api/api.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

livekit-api/livekit/api/api.py:18:24: F821 Undefined name `EgressService`
Expand Down

0 comments on commit fa5aba2

Please sign in to comment.