Skip to content

Commit

Permalink
Use root as default name from tractor.run()
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Feb 25, 2021
1 parent cd636b2 commit 47565cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def main():

async with tractor.open_nursery() as n:

name = 'arbiter'
name = 'root'

if pub_actor == 'streamer':
# start the publisher as a daemon
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_rpc_errors(arb_addr, to_call, testdir):
exposed_mods, funcname, inside_err = to_call
subactor_exposed_mods = []
func_defined = globals().get(funcname, False)
subactor_requests_to = 'arbiter'
subactor_requests_to = 'root'
remote_err = tractor.RemoteActorError

# remote module that fails at import time
Expand Down
2 changes: 1 addition & 1 deletion tractor/_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run(
*args,

# runtime kwargs
name: Optional[str] = None,
name: Optional[str] = 'root',
arbiter_addr: Tuple[str, int] = (
_default_arbiter_host,
_default_arbiter_port,
Expand Down

0 comments on commit 47565cf

Please sign in to comment.