Ensure `registry_addrs` is always set to something

multihomed
Tyler Goodlet 2023-10-18 19:08:35 -04:00
parent 0e9457299c
commit 022bf8ce75
1 changed files with 3 additions and 2 deletions

View File

@ -46,12 +46,12 @@ from ._exceptions import is_multi_cancelled
# set at startup and after forks
_default_lo_host: str = '127.0.0.1'
_default_host: str = '127.0.0.1'
_default_port: int = 1616
# default registry always on localhost
_default_lo_addrs: list[tuple[str, int]] = [(
_default_lo_host,
_default_host,
_default_port,
)]
@ -133,6 +133,7 @@ async def open_root_actor(
or
_default_lo_addrs
)
assert registry_addrs
loglevel = (loglevel or log._default_loglevel).upper()