mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
Use trio.lowlevel instead of trio.hazmat
Since trio 0.15.0, hazmat has been deprecated. trio-typing and mypy are bumped to support newer trio and each other.
This commit is contained in:
@ -102,5 +102,5 @@ class TCP(ITransport):
|
||||
|
||||
|
||||
def _multiaddr_from_socket(socket: trio.socket.SocketType) -> Multiaddr:
|
||||
ip, port = socket.getsockname() # type: ignore
|
||||
ip, port = socket.getsockname()
|
||||
return Multiaddr(f"/ip4/{ip}/tcp/{port}")
|
||||
|
||||
Reference in New Issue
Block a user