mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-14 11:33:08 +00:00
Make the new methods gcsafe to solve build issues in Nimbus
This commit is contained in:
parent
9d0326aad4
commit
48699c50ca
@ -26,9 +26,9 @@ proc rpcCallNode*(path: string, params: JsonNode, id: ClientId): JsonNode =
|
||||
%{"jsonrpc": %"2.0", "method": %path, "params": params, "id": %id}
|
||||
|
||||
method call*(client: RpcClient, name: string,
|
||||
params: JsonNode): Future[Response] {.async, base.} = discard
|
||||
params: JsonNode): Future[Response] {.gcsafe, async, base.} = discard
|
||||
|
||||
method close*(client: RpcClient) {.base, async.} = discard
|
||||
method close*(client: RpcClient) {.base, gcsafe, async.} = discard
|
||||
|
||||
template asyncRaise[T](fut: Future[T], errType: typedesc, msg: string) =
|
||||
fut.fail(newException(errType, msg))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user