mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-03-19 03:31:27 +00:00
feat: implement get_remote_address via delegation pattern
This commit is contained in:
@ -365,3 +365,7 @@ class Mplex(IMuxedConn):
|
||||
await send_channel.aclose()
|
||||
self.event_closed.set()
|
||||
await self.new_stream_send_channel.aclose()
|
||||
|
||||
def get_remote_address(self) -> Optional[tuple[str, int]]:
|
||||
"""Delegate to the underlying Mplex connection's secured_conn."""
|
||||
return self.secured_conn.get_remote_address()
|
||||
|
||||
Reference in New Issue
Block a user