Skip to content
Snippets Groups Projects
Commit c41f38d9 authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent 77f23965
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
...@@ -36,7 +36,7 @@ class DltEventsCollector: ...@@ -36,7 +36,7 @@ class DltEventsCollector:
self._terminate = asyncio.Event() self._terminate = asyncio.Event()
self._dltgateway_stream = None self._dltgateway_stream = None
async def start(self) -> None: async def run(self) -> None:
event_handler = self._event_handler event_handler = self._event_handler
if event_handler is None: if event_handler is None:
event_handler = lambda e: e event_handler = lambda e: e
...@@ -90,11 +90,3 @@ class DltEventsCollector: ...@@ -90,11 +90,3 @@ class DltEventsCollector:
if self._dltgateway_stream is not None: if self._dltgateway_stream is not None:
await self._dltgateway_stream.cancel() 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())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment