forked from goodboy/tractor
1
0
Fork 0

TOSQUASH 77a15eb use `DebugStatus` in `._rpc`

runtime_to_msgspec
Tyler Goodlet 2024-04-18 15:18:29 -04:00
parent d2f6428e46
commit 4aa24f8518
1 changed files with 3 additions and 3 deletions
tractor

View File

@ -814,7 +814,7 @@ async def process_messages(
# should use it? # should use it?
# https://github.com/python-trio/trio/issues/467 # https://github.com/python-trio/trio/issues/467
log.runtime( log.runtime(
'Entering IPC msg loop:\n' 'Entering RPC msg loop:\n'
f'peer: {chan.uid}\n' f'peer: {chan.uid}\n'
f'|_{chan}\n' f'|_{chan}\n'
) )
@ -876,7 +876,7 @@ async def process_messages(
# XXX NOTE XXX don't start entire actor # XXX NOTE XXX don't start entire actor
# runtime cancellation if this actor is # runtime cancellation if this actor is
# currently in debug mode! # currently in debug mode!
pdb_complete: trio.Event|None = _debug.Lock.local_pdb_complete pdb_complete: trio.Event|None = _debug.DebugStatus.repl_release
if pdb_complete: if pdb_complete:
await pdb_complete.wait() await pdb_complete.wait()
@ -1073,7 +1073,7 @@ async def process_messages(
log.exception(message) log.exception(message)
raise RuntimeError(message) raise RuntimeError(message)
log.runtime( log.transport(
'Waiting on next IPC msg from\n' 'Waiting on next IPC msg from\n'
f'peer: {chan.uid}\n' f'peer: {chan.uid}\n'
f'|_{chan}\n' f'|_{chan}\n'