mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +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()
|
await listener.close()
|
||||||
# Notify about listener closure
|
# Notify about listener closure
|
||||||
try:
|
try:
|
||||||
from multiaddr import Multiaddr
|
|
||||||
|
|
||||||
multiaddr = Multiaddr(maddr_str)
|
multiaddr = Multiaddr(maddr_str)
|
||||||
await self.notify_listen_close(multiaddr)
|
await self.notify_listen_close(multiaddr)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user