Ensure `registry_addrs` is always set to something
parent
0e9457299c
commit
022bf8ce75
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue