Rm `assert` from `Channel.from_addr()`, for UDS we re-created to extract the peer PID

to_asyncio_eoc_signal
Tyler Goodlet 2025-07-25 11:27:30 -04:00
parent 326b258fd5
commit c2acc4f55c
1 changed files with 4 additions and 2 deletions

View File

@ -185,7 +185,9 @@ class Channel:
addr,
**kwargs,
)
assert transport.raddr == addr
# XXX, for UDS *no!* since we recv the peer-pid and build out
# a new addr..
# assert transport.raddr == addr
chan = Channel(transport=transport)
# ?TODO, compact this into adapter level-methods?
@ -301,7 +303,7 @@ class Channel:
self,
payload: Any,
hide_tb: bool = True,
hide_tb: bool = False,
) -> None:
'''