Fix missing asterisk

This commit is contained in:
NIC619 2019-08-02 15:06:39 +08:00
parent 0173b5e0d9
commit 3a4b592a5a
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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