From b29d33d6031f69ba0b75373862434ad4cd00e326 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 8 Mar 2024 14:03:18 -0500 Subject: [PATCH] Make `Actor._cancel_task(requesting_uid: tuple)` required arg --- tractor/_runtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_runtime.py b/tractor/_runtime.py index 64549ba..09778c7 100644 --- a/tractor/_runtime.py +++ b/tractor/_runtime.py @@ -1752,8 +1752,8 @@ class Actor: self, cid: str, parent_chan: Channel, + requesting_uid: tuple[str, str]|None, - requesting_uid: tuple[str, str]|None = None, ipc_msg: dict|None|bool = False, ) -> bool: @@ -2352,6 +2352,7 @@ async def process_messages( await actor._cancel_task( cid, channel, + requesting_uid=channel.uid, ipc_msg=msg, )