Properly respect `rpc_module_paths` in `run_in_actor()`

contexts
Tyler Goodlet 2019-01-12 17:55:08 -05:00
parent be20e1488b
commit 7377598683
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class ActorNursery:
name: str,
fn: typing.Callable,
bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
rpc_module_paths: List[str] = None,
rpc_module_paths: List[str] = [],
statespace: Dict[str, Any] = None,
loglevel: str = None, # set log level per subactor
**kwargs, # explicit args to ``fn``
@ -129,7 +129,7 @@ class ActorNursery:
mod_path = fn.__module__
portal = await self.start_actor(
name,
rpc_module_paths=[mod_path],
rpc_module_paths=[mod_path] + rpc_module_paths,
bind_addr=bind_addr,
statespace=statespace,
)