This commit is contained in:
Dmitriy Ryajov 2019-09-01 15:52:02 -06:00
parent fceea14aa5
commit 7f0627378c
2 changed files with 5 additions and 3 deletions

View File

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

View File

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