From 36ec6683869590a8813dfbea91ba5055172dac26 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 24 Sep 2020 11:12:23 -0400 Subject: [PATCH] Make topics a set --- tractor/msg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/msg.py b/tractor/msg.py index 41d1d6b87..0462fd0ce 100644 --- a/tractor/msg.py +++ b/tractor/msg.py @@ -193,7 +193,7 @@ async def _execute( topics: Set[str], *args, # *, - task_name: str = None, + task_name: str = None, # default: only one task allocated packetizer: Callable = None, **kwargs, ): @@ -202,6 +202,7 @@ async def _execute( f"{agen} must be called with a `task_name` named " f"argument with a falue from {tasks}") + topics = set(topics) ss = current_actor().statespace lockmap = ss.setdefault('_pubtask2lock', task2lock) lock = lockmap[task_name]