diff --git a/libp2p/tcptransport.nim b/libp2p/tcptransport.nim index fac7c607d..2d4cbcd6b 100644 --- a/libp2p/tcptransport.nim +++ b/libp2p/tcptransport.nim @@ -63,4 +63,4 @@ method dial*(t: TcpTransport, let client: StreamTransport = await connect(address) result = await t.connHandler(t.server, client) -method handles*(t: Transport, address: MultiAddress): bool {.gcsafe.} = true +method handles*(t: TcpTransport, address: MultiAddress): bool {.gcsafe.} = true diff --git a/tests/testtransport.nim b/tests/testtransport.nim index 1084975ba..0091de1a5 100644 --- a/tests/testtransport.nim +++ b/tests/testtransport.nim @@ -3,7 +3,7 @@ import chronos import ../libp2p/connection, ../libp2p/transport, ../libp2p/tcptransport, ../libp2p/multiaddress, ../libp2p/wire -suite "TCP transport suite": +suite "TCP transport": test "test listener: handle write": proc testListener(): Future[bool] {.async, gcsafe.} = let ma: MultiAddress = Multiaddress.init("/ip4/127.0.0.1/tcp/53335")