fix: use custom constructor

This commit is contained in:
Dmitriy Ryajov 2019-09-03 14:41:55 -06:00
parent 917e0553e1
commit b4dced6186
1 changed files with 2 additions and 2 deletions

View File

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