Adjust to new modules

kivy_mainline_and_py3.8
Tyler Goodlet 2018-05-30 09:37:53 -04:00
parent 623291cc69
commit 2e5cdbcb7c
1 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,8 @@ import trio
from . import watchlists as wl from . import watchlists as wl
from .brokers import core, get_brokermod from .brokers import core, get_brokermod
from .brokers.core import _daemon_main, Client from .brokers.core import _brokerd_main
from .ipc import Client
from .log import get_console_log, colorize_json, get_logger from .log import get_console_log, colorize_json, get_logger
log = get_logger('cli') log = get_logger('cli')
@ -33,7 +34,7 @@ def run(main, loglevel='info'):
def pikerd(loglevel, host): def pikerd(loglevel, host):
"""Spawn the piker daemon. """Spawn the piker daemon.
""" """
run(partial(_daemon_main, host), loglevel) run(partial(_brokerd_main, host), loglevel)
@click.group() @click.group()
@ -167,7 +168,7 @@ def watch(loglevel, broker, rate, name, dhost):
log.warning("Spawning local broker-daemon...") log.warning("Spawning local broker-daemon...")
child = Process( child = Process(
target=run, target=run,
args=(partial(_daemon_main, dhost), loglevel), args=(partial(_brokerd_main, dhost), loglevel),
daemon=True, daemon=True,
name='pikerd', name='pikerd',
) )