Support Nim 1.2

This commit is contained in:
Zahary Karadjov 2020-03-24 16:50:34 +02:00
parent 6fbaeb61ca
commit 5c0d096111
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 0 additions and 2 deletions

View File

@ -15,9 +15,7 @@ type
Response* = tuple[error: bool, result: JsonNode] Response* = tuple[error: bool, result: JsonNode]
proc initRpcClient*[T: RpcClient](client: var T) = proc initRpcClient*[T: RpcClient](client: var T) =
client.awaiting = initTable[ClientId, Future[Response]]()
client.nextId = 1 client.nextId = 1
client.methodHandlers = initTable[string, proc(j: JsonNode)]()
proc getNextId*(client: RpcClient): ClientId = proc getNextId*(client: RpcClient): ClientId =
result = client.nextId result = client.nextId