From 3a4b592a5a9955c4c2b8144ec5ecbc26a3d44da4 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Fri, 2 Aug 2019 15:06:39 +0800 Subject: [PATCH] Fix missing asterisk --- libp2p/network/network_interface.py | 2 +- libp2p/network/swarm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/network/network_interface.py b/libp2p/network/network_interface.py index 4337535..131eba8 100644 --- a/libp2p/network/network_interface.py +++ b/libp2p/network/network_interface.py @@ -58,7 +58,7 @@ class INetwork(ABC): """ @abstractmethod - async def listen(self, multiaddrs: Sequence[Multiaddr]) -> bool: + async def listen(self, *multiaddrs: Sequence[Multiaddr]) -> bool: """ :param multiaddrs: one or many multiaddrs to start listening on :return: True if at least one success diff --git a/libp2p/network/swarm.py b/libp2p/network/swarm.py index f8bfbcd..d25b7fe 100644 --- a/libp2p/network/swarm.py +++ b/libp2p/network/swarm.py @@ -163,7 +163,7 @@ class Swarm(INetwork): return net_stream - async def listen(self, multiaddrs: Sequence[Multiaddr]) -> bool: + async def listen(self, *multiaddrs: Sequence[Multiaddr]) -> bool: """ :param multiaddrs: one or many multiaddrs to start listening on :return: true if at least one success