File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 46
46
47
47
48
48
# set at startup and after forks
49
- _default_arbiter_host : str = '127.0.0.1'
50
- _default_arbiter_port : int = 1616
49
+ _default_lo_host : str = '127.0.0.1'
50
+ _default_port : int = 1616
51
+
52
+ # default registry always on localhost
53
+ _default_lo_addrs : list [tuple [str , int ]] = [(
54
+ _default_lo_host ,
55
+ _default_port ,
56
+ )]
51
57
52
58
53
59
logger = log .get_logger ('tractor' )
@@ -124,10 +130,8 @@ async def open_root_actor(
124
130
125
131
registry_addrs : list [tuple [str , int ]] = (
126
132
registry_addrs
127
- or [( # default on localhost
128
- _default_arbiter_host ,
129
- _default_arbiter_port ,
130
- )]
133
+ or
134
+ _default_lo_addrs
131
135
)
132
136
133
137
loglevel = (loglevel or log ._default_loglevel ).upper ()
@@ -329,9 +333,7 @@ def run_daemon(
329
333
330
334
# runtime kwargs
331
335
name : str | None = 'root' ,
332
- registry_addrs : list [tuple [str , int ]] = [
333
- (_default_arbiter_host , _default_arbiter_port )
334
- ],
336
+ registry_addrs : list [tuple [str , int ]] = _default_lo_addrs ,
335
337
336
338
start_method : str | None = None ,
337
339
debug_mode : bool = False ,
You can’t perform that action at this time.
0 commit comments