From 82c8fca9836acf7ed8bc7931590f414ee960f0de Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 18 Oct 2018 13:49:20 -0400 Subject: [PATCH] Use tractor.run_daemon() for pikerd --- piker/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/piker/cli.py b/piker/cli.py index ab960363..717d2ef6 100644 --- a/piker/cli.py +++ b/piker/cli.py @@ -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, )