Fix transport.dial in swarm

This commit is contained in:
mhchia
2019-09-11 17:13:21 +08:00
parent cb1a25f94c
commit c1ffc0ab07
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ from abc import ABC, abstractmethod
from multiaddr import Multiaddr
from libp2p.network.connection.raw_connection_interface import IRawConnection
from libp2p.peer.id import ID
from .listener_interface import IListener
from .typing import THandler
@ -11,7 +10,7 @@ from .typing import THandler
class ITransport(ABC):
@abstractmethod
async def dial(self, maddr: Multiaddr, self_id: ID) -> IRawConnection:
async def dial(self, maddr: Multiaddr) -> IRawConnection:
"""
dial a transport to peer listening on multiaddr
:param multiaddr: multiaddr of peer