From b4dced6186f95dd6d5ca8fa0b0df1dd4418896bb Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 3 Sep 2019 14:41:55 -0600 Subject: [PATCH] fix: use custom constructor --- tests/testidentify.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testidentify.nim b/tests/testidentify.nim index 169efdf28..bdb2251d5 100644 --- a/tests/testidentify.nim +++ b/tests/testidentify.nim @@ -18,7 +18,7 @@ suite "Identify": peerInfo.peerId = PeerID.init(remoteSeckey) peerInfo.addrs.add(ma) - let identifyProto = newProtocol(Identify, peerInfo) + let identifyProto = newIdentify(peerInfo) let msListen = newMultistream() msListen.addHandler(IdentifyCodec, identifyProto) @@ -38,7 +38,7 @@ suite "Identify": peerInfo.peerId = PeerID.init(seckey) peerInfo.addrs.add(ma) - let identifyProto = newProtocol(Identify, peerInfo) + let identifyProto = newIdentify(peerInfo) let res = await msDial.select(conn, IdentifyCodec) let id = await identifyProto.identify(conn)