Skip to content

Commit

Permalink
coordinator: Initialize txaio with asyncio to fix runtime error
Browse files Browse the repository at this point in the history
This commit fixes a RuntimeError by explicitly initializing txaio to use asyncio
before its usage in the coordinator module. This ensures compatibility with the
asyncio framework, addressing the issue where txaio required an explicit framework
selection.

Signed-off-by: Arthur Oliveira <arthur.oliveira@ossystems.com.br>
  • Loading branch information
arthursdo committed Feb 15, 2024
1 parent 91c7e9c commit 761e52c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions labgrid/remote/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from functools import wraps

import attr
import txaio
txaio.use_asyncio()
from autobahn import wamp
from autobahn.asyncio.wamp import ApplicationRunner, ApplicationSession
from autobahn.wamp.types import RegisterOptions
Expand Down

0 comments on commit 761e52c

Please sign in to comment.