diff --git a/tractor/_root.py b/tractor/_root.py index 0969fe55..99a5ad85 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -46,8 +46,14 @@ # set at startup and after forks -_default_arbiter_host: str = '127.0.0.1' -_default_arbiter_port: int = 1616 +_default_lo_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_port, +)] logger = log.get_logger('tractor') @@ -124,10 +130,8 @@ async def open_root_actor( registry_addrs: list[tuple[str, int]] = ( registry_addrs - or [( # default on localhost - _default_arbiter_host, - _default_arbiter_port, - )] + or + _default_lo_addrs ) loglevel = (loglevel or log._default_loglevel).upper() @@ -329,9 +333,7 @@ def run_daemon( # runtime kwargs name: str | None = 'root', - registry_addrs: list[tuple[str, int]] = [ - (_default_arbiter_host, _default_arbiter_port) - ], + registry_addrs: list[tuple[str, int]] = _default_lo_addrs, start_method: str | None = None, debug_mode: bool = False,