Use tractor.run_daemon() for pikerd

kivy_mainline_and_py3.8
Tyler Goodlet 2018-10-18 13:49:20 -04:00
parent e108bc4521
commit 82c8fca983
1 changed files with 2 additions and 3 deletions

View File

@ -28,14 +28,13 @@ def pikerd(loglevel, host):
"""Spawn the piker daemon.
"""
get_console_log(loglevel)
tractor.run(
partial(trio.sleep, float('inf')), # daemon / arbiter
tractor.run_daemon(
rpc_module_paths=['piker.brokers.core'],
statespace={
'broker2tickersubs': {},
'clients': {},
'dtasks': set(),
},
rpc_module_paths=['piker.brokers.core'],
name='brokerd',
loglevel=loglevel,
)