This commit is contained in:
Dmitriy Ryajov 2020-02-12 12:29:09 -05:00
parent 30a496de5e
commit 0349165830
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ proc readMsg*(conn: Connection): Future[Msg] {.async, gcsafe.} =
trace "read header varint", varint = headerVarint
let dataLenVarint = await conn.readMplexVarint()
trace "read data len varing", varint = dataLenVarint
trace "read data len varint", varint = dataLenVarint
var data: seq[byte]
if dataLenVarint.int > 0:
data = await conn.read(dataLenVarint.int)