From 79129ea6d15fef9551d4832de8ffbc368b718973 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sat, 31 Aug 2019 11:59:21 -0600 Subject: [PATCH] `handles` should be called on concrete transport --- libp2p/tcptransport.nim | 2 +- tests/testtransport.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/tcptransport.nim b/libp2p/tcptransport.nim index fac7c60..2d4cbcd 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 1084975..0091de1 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")