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. """Spawn the piker daemon.
""" """
get_console_log(loglevel) get_console_log(loglevel)
tractor.run( tractor.run_daemon(
partial(trio.sleep, float('inf')), # daemon / arbiter rpc_module_paths=['piker.brokers.core'],
statespace={ statespace={
'broker2tickersubs': {}, 'broker2tickersubs': {},
'clients': {}, 'clients': {},
'dtasks': set(), 'dtasks': set(),
}, },
rpc_module_paths=['piker.brokers.core'],
name='brokerd', name='brokerd',
loglevel=loglevel, loglevel=loglevel,
) )