`var` strings only for transport

This commit is contained in:
coffeepots 2018-06-12 18:09:00 +01:00
parent 2a6c1fb89a
commit 93c7a5577e
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ proc rawCall*(self: RpcClient, name: string,
let id = $self.nextId
self.nextId.inc
debug "Sending message", msg = msg
let res = await self.transp.write(msg & "\c\l")
var s = msg & "\c\l"
let res = await self.transp.write(s)
debug "Receiving length assert", value = res, length = len(msg), lengthDifferent = res != len(msg)
# completed by processMessage.