Fix spawn attr typo, merge tractor kwargs

supervise
Tyler Goodlet 2021-03-22 06:29:09 -04:00
parent 7ca05238af
commit 1931da97f4
1 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,8 @@ async def spawn_brokerd(
brokermod = get_brokermod(brokername)
dname = f'brokerd.{brokername}'
extra_tractor_kwargs = getattr(brokermod, '_spawnkwargs', {})
extra_tractor_kwargs = getattr(brokermod, '_spawn_kwargs', {})
tractor_kwargs.update(extra_tractor_kwargs)
# TODO: raise exception when _root_nursery == None?
global _root_nursery
@ -104,7 +105,7 @@ async def spawn_brokerd(
dname,
enable_modules=_data_mods + [brokermod.__name__],
loglevel=loglevel,
**extra_tractor_kwargs
**tractor_kwargs
)
return dname