From 5c0d0961114bcaaf3da52d5918bf0b85ef0e4ce9 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 24 Mar 2020 16:50:34 +0200 Subject: [PATCH] Support Nim 1.2 --- json_rpc/client.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/json_rpc/client.nim b/json_rpc/client.nim index d8b1b18..bde73b1 100644 --- a/json_rpc/client.nim +++ b/json_rpc/client.nim @@ -15,9 +15,7 @@ type Response* = tuple[error: bool, result: JsonNode] proc initRpcClient*[T: RpcClient](client: var T) = - client.awaiting = initTable[ClientId, Future[Response]]() client.nextId = 1 - client.methodHandlers = initTable[string, proc(j: JsonNode)]() proc getNextId*(client: RpcClient): ClientId = result = client.nextId