Renamed ifRoute to tryRoute

This commit is contained in:
coffeepots 2018-07-10 16:51:26 +01:00
parent eb23c46949
commit ceec0e7690
1 changed files with 1 additions and 1 deletions

View File

@ -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