From 022bf8ce75916f0446a26c6f13f7442067b97440 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 18 Oct 2023 19:08:35 -0400 Subject: [PATCH] Ensure `registry_addrs` is always set to something --- tractor/_root.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index 99a5ad8..a36a7e7 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -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()