Support Nim 1.2
This commit is contained in:
parent
6fbaeb61ca
commit
5c0d096111
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue