diff --git a/libp2p/identify.nim b/libp2p/identify.nim index c159bf68b..83464afba 100644 --- a/libp2p/identify.nim +++ b/libp2p/identify.nim @@ -70,7 +70,7 @@ proc decodeMsg*(buf: seq[byte]): IdentifyInfo = var proto = "" while pb.getString(3, proto) > 0: result.protos.add(proto) - proto = "" # TODO: do i need to clear it up? + proto = "" var observableAddr = newSeq[byte]() if pb.getBytes(4, observableAddr) > 0: # attempt to read the observed addr diff --git a/tests/testmultistream.nim b/tests/testmultistream.nim index d2ac2926e..b09837f05 100644 --- a/tests/testmultistream.nim +++ b/tests/testmultistream.nim @@ -55,7 +55,8 @@ type method readExactly*(s: TestLsStream, pbytes: pointer, - nbytes: int): Future[void] {.async, gcsafe.} = + nbytes: int): + Future[void] {.async, gcsafe.} = case s.step: of 1: var buf = newSeq[byte](1) @@ -101,7 +102,8 @@ type method readExactly*(s: TestNaStream, pbytes: pointer, - nbytes: int): Future[void] {.async, gcsafe.} = + nbytes: int): + Future[void] {.async, gcsafe.} = case s.step: of 1: var buf = newSeq[byte](1)