mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-11 09:16:15 +00:00
fix: use custom constructor
This commit is contained in:
parent
917e0553e1
commit
b4dced6186
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user