Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Fix Ethereum connector asyncio loop #703

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rranjan3
Copy link
Contributor

Replace nested run_until_complete() with create_task() in Ethereum
connector. The evet loop once started cannot be started again from
within a coroutine.

Signed-off-by: Rajeev Ranjan [email protected]

Replace nested run_until_complete() with create_task() in Ethereum
connector. The evet loop once started cannot be started again from
within a coroutine.

Signed-off-by: Rajeev Ranjan <[email protected]>
@@ -94,7 +94,7 @@ def workorder_event_handler_func(event, account, contract):

try:
daemon = EventProcessor(self._config)
asyncio.get_event_loop().run_until_complete(daemon.start(
asyncio.get_event_loop().create_task(daemon.start(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think similar fix required for fabric as well?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants