mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-09 09:03:10 +00:00
assert() -> doAssert()
This commit is contained in:
parent
53ed44dfa5
commit
159f9b816e
@ -22,7 +22,7 @@ proc call*(self: RpcSocketClient, name: string,
|
||||
"Transport is not initialised (missing a call to connect?)")
|
||||
let res = await self.transport.write(value)
|
||||
# TODO: Add actions when not full packet was send, e.g. disconnect peer.
|
||||
assert(res == len(value))
|
||||
doAssert(res == len(value))
|
||||
|
||||
# completed by processMessage.
|
||||
var newFut = newFuture[Response]()
|
||||
|
||||
@ -10,7 +10,7 @@ proc rawCall*(self: RpcClient, name: string,
|
||||
|
||||
var s = msg & "\c\l"
|
||||
let res = await self.transport.write(s)
|
||||
assert res == len(s)
|
||||
doAssert res == len(s)
|
||||
|
||||
# completed by processMessage.
|
||||
var newFut = newFuture[Response]()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user