mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-08 00:23:12 +00:00
Remove debug echo
This commit is contained in:
parent
9613fe72a7
commit
2a6c1fb89a
@ -49,7 +49,6 @@ macro checkGet(node: JsonNode, fieldName: string,
|
||||
of JFloat: result.add(quote do: `n`.getFloat)
|
||||
of JObject: result.add(quote do: `n`.getObject)
|
||||
else: discard
|
||||
echo "!!!", result.repr
|
||||
|
||||
proc processMessage(self: RpcClient, line: string) =
|
||||
let node = parseJson(line)
|
||||
@ -64,7 +63,7 @@ proc processMessage(self: RpcClient, line: string) =
|
||||
if not self.awaiting.hasKey(id):
|
||||
raise newException(ValueError,
|
||||
"Cannot find message id \"" & node["id"].str & "\"")
|
||||
|
||||
|
||||
let errorNode = node{"error"}
|
||||
if errorNode.isNil or errorNode.kind == JNull:
|
||||
var res = node{"result"}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user