mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Remove redundant local import of Multiaddr in close() method
This commit is contained in:
@ -334,8 +334,6 @@ class Swarm(Service, INetworkService):
|
||||
await listener.close()
|
||||
# Notify about listener closure
|
||||
try:
|
||||
from multiaddr import Multiaddr
|
||||
|
||||
multiaddr = Multiaddr(maddr_str)
|
||||
await self.notify_listen_close(multiaddr)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user