Skip to content

Commit ecc55e2

Browse files
committed
Added TODO comment to move heartbeat tasks to lifespan in Client class
1 parent 59e3843 commit ecc55e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/stompman/stompman/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def __post_init__(self) -> None:
8686

8787
async def __aenter__(self) -> Self:
8888
self._task_group = await self._exit_stack.enter_async_context(asyncio.TaskGroup())
89+
# TODO: move this tasks to lifespan
8990
self._send_heartbeat_task = self._task_group.create_task(asyncio.sleep(0))
9091
self._check_server_heartbeat_task = self._task_group.create_task(asyncio.sleep(0))
9192
await self._exit_stack.enter_async_context(self._connection_manager)

0 commit comments

Comments
 (0)