Commit c41f38d9 authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent 77f23965
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -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
@@ -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())