mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-13 19:13:11 +00:00
Renamed ifRoute to tryRoute
This commit is contained in:
parent
eb23c46949
commit
ceec0e7690
@ -145,7 +145,7 @@ proc route*(router: RpcRouter, data: string): Future[string] {.async, gcsafe.} =
|
||||
let res = await router.route(node)
|
||||
result = $res & messageTerminator
|
||||
|
||||
proc ifRoute*(router: RpcRouter, data: JsonNode, fut: var Future[JsonNode]): bool =
|
||||
proc tryRoute*(router: RpcRouter, data: JsonNode, fut: var Future[JsonNode]): bool =
|
||||
## Route to RPC, returns false if the method or params cannot be found.
|
||||
## Expects json input and returns json output.
|
||||
let
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user