mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-02-25 16:13:07 +00:00
Fix client.nim for latest changes in asyncdispatch2.
This commit is contained in:
parent
1ff985b468
commit
001195341c
@ -19,7 +19,7 @@ proc call*(self: RpcClient, name: string,
|
||||
## Remotely calls the specified RPC method.
|
||||
let id = $self.nextId
|
||||
self.nextId.inc
|
||||
let msg = $ %{"jsonrpc": %"2.0", "method": %name, "params": params,
|
||||
var msg = $ %{"jsonrpc": %"2.0", "method": %name, "params": params,
|
||||
"id": %id} & "\c\l"
|
||||
let res = await self.transp.write(msg)
|
||||
# TODO: Add actions when not full packet was send, e.g. disconnect peer.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user