Port `Actor._stream_handler()` to use `.has_outcome`, fix indent bug..

runtime_to_msgspec
Tyler Goodlet 2024-05-22 15:10:39 -04:00
parent 92ac95ce24
commit 50ed461996
1 changed files with 20 additions and 17 deletions

View File

@ -1142,7 +1142,6 @@ class Actor:
requester_type,
req_chan,
log_meth,
) = (
req_chan.uid,
'peer',
@ -1175,7 +1174,11 @@ class Actor:
# with the root actor in this tree
debug_req = _debug.DebugStatus
lock_req_ctx: Context = debug_req.req_ctx
if lock_req_ctx is not None:
if (
lock_req_ctx
and
lock_req_ctx.has_outcome
):
msg += (
'-> Cancelling active debugger request..\n'
f'|_{_debug.Lock.repr()}\n\n'