From ceec0e76906341fccf71613bae1ba79d9fb1ce69 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Tue, 10 Jul 2018 16:51:26 +0100 Subject: [PATCH] Renamed ifRoute to tryRoute --- json_rpc/router.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_rpc/router.nim b/json_rpc/router.nim index a1f7cd2..bc811cb 100644 --- a/json_rpc/router.nim +++ b/json_rpc/router.nim @@ -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