diff --git a/libp2p/identify.nim b/libp2p/identify.nim index 084e4be23..c159bf68b 100644 --- a/libp2p/identify.nim +++ b/libp2p/identify.nim @@ -68,7 +68,6 @@ proc decodeMsg*(buf: seq[byte]): IdentifyInfo = address.setLen(0) var proto = "" - # var protos: seq[string] = newSeq[string]() while pb.getString(3, proto) > 0: result.protos.add(proto) proto = "" # TODO: do i need to clear it up? @@ -78,7 +77,6 @@ proc decodeMsg*(buf: seq[byte]): IdentifyInfo = result.observedAddr = MultiAddress.init(observableAddr) discard pb.getString(5, result.protoVersion) - discard pb.getString(6, result.agentVersion) method init*(p: Identify) = diff --git a/tests/testnative.nim b/tests/testnative.nim index 38c48f116..0110a3d28 100644 --- a/tests/testnative.nim +++ b/tests/testnative.nim @@ -2,4 +2,4 @@ import unittest import testvarint, testbase32, testbase58, testbase64 import testrsa, testecnist, tested25519, testsecp256k1, testcrypto import testmultibase, testmultihash, testmultiaddress, testcid, testpeer -import testidentify, testtransport, testmultistream +import testidentify, testtransport, testmultistream, testswitch