Loading src/dlt/connector/client/DltEventsCollector.py +1 −9 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class DltEventsCollector: self._terminate = asyncio.Event() self._dltgateway_stream = None async def start(self) -> None: async def run(self) -> None: event_handler = self._event_handler if event_handler is None: event_handler = lambda e: e Loading Loading @@ -90,11 +90,3 @@ class DltEventsCollector: if self._dltgateway_stream is not None: await self._dltgateway_stream.cancel() # Usage example async def main(): gateway_client = DltGatewayClient() collector = DltEventsCollector(gateway_client) await collector.start() # Start the event loop asyncio.run(main()) Loading
src/dlt/connector/client/DltEventsCollector.py +1 −9 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class DltEventsCollector: self._terminate = asyncio.Event() self._dltgateway_stream = None async def start(self) -> None: async def run(self) -> None: event_handler = self._event_handler if event_handler is None: event_handler = lambda e: e Loading Loading @@ -90,11 +90,3 @@ class DltEventsCollector: if self._dltgateway_stream is not None: await self._dltgateway_stream.cancel() # Usage example async def main(): gateway_client = DltGatewayClient() collector = DltEventsCollector(gateway_client) await collector.start() # Start the event loop asyncio.run(main())