Skip to content

Commit

Permalink
No need to public task group
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Dec 3, 2024
1 parent ebd7292 commit a8b240f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpx_ws/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ async def __aenter__(
self,
) -> tuple["ASGIWebSocketAsyncNetworkStream", bytes]:
self.exit_stack = contextlib.AsyncExitStack()
self._task_group = await self.exit_stack.enter_async_context(
task_group = await self.exit_stack.enter_async_context(
anyio.create_task_group()
)
self._task_group.start_soon(self._run)
task_group.start_soon(self._run)

await self.send({"type": "websocket.connect"})
message = await self.receive()
Expand Down

0 comments on commit a8b240f

Please sign in to comment.