Skip to content

Commit

Permalink
Drop trip kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jul 5, 2021
1 parent 0c38104 commit d130f2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tractor/_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ async def new_proc(
parent_addr: Tuple[str, int],
_runtime_vars: Dict[str, Any], # serialized and sent to _child
*,
use_trio_run_in_process: bool = False,
task_status: TaskStatus[Portal] = trio.TASK_STATUS_IGNORED
) -> None:
"""Create a new ``multiprocessing.Process`` using the
Expand All @@ -236,7 +235,7 @@ async def new_proc(
# mark the new actor with the global spawn method
subactor._spawn_method = _spawn_method

if use_trio_run_in_process or _spawn_method == 'trio':
if _spawn_method == 'trio':
async with trio.open_nursery() as nursery:
async with spawn_subactor(
subactor,
Expand Down Expand Up @@ -338,7 +337,6 @@ async def mp_new_proc(
parent_addr: Tuple[str, int],
_runtime_vars: Dict[str, Any], # serialized and sent to _child
*,
use_trio_run_in_process: bool = False,
task_status: TaskStatus[Portal] = trio.TASK_STATUS_IGNORED

) -> None:
Expand Down

0 comments on commit d130f2c

Please sign in to comment.