Skip to content

Commit

Permalink
Merge pull request #335 from pikers/ib_subpkg
Browse files Browse the repository at this point in the history
`pikers.broker.ib` subpackage
  • Loading branch information
goodboy authored Jun 7, 2022
2 parents e9f0ea3 + 1345b25 commit 633fa7c
Show file tree
Hide file tree
Showing 7 changed files with 2,877 additions and 2,700 deletions.
12 changes: 11 additions & 1 deletion piker/_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,19 @@ async def spawn_brokerd(

# ask `pikerd` to spawn a new sub-actor and manage it under its
# actor nursery
modpath = brokermod.__name__
broker_enable = [modpath]
for submodname in getattr(
brokermod,
'__enable_modules__',
[],
):
subpath = f'{modpath}.{submodname}'
broker_enable.append(subpath)

portal = await _services.actor_n.start_actor(
dname,
enable_modules=_data_mods + [brokermod.__name__],
enable_modules=_data_mods + broker_enable,
loglevel=loglevel,
debug_mode=_services.debug_mode,
**tractor_kwargs
Expand Down
Loading

0 comments on commit 633fa7c

Please sign in to comment.