some event loop parameter updates

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-31 00:13:43 -07:00
parent b85e93410b
commit 92561ae19d
5 changed files with 11 additions and 10 deletions

View File

@@ -41,8 +41,8 @@ class TransportParams(BaseModel):
class BaseTransport(ABC):
def __init__(self, loop: asyncio.AbstractEventLoop):
self._loop = loop
def __init__(self, loop: asyncio.AbstractEventLoop | None):
self._loop = loop or asyncio.get_running_loop()
self._event_handlers: dict = {}
@abstractmethod