From 8b1b933d5def962424d64d1f57b95b2086160791 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Mon, 4 Jun 2018 14:15:56 +0100 Subject: [PATCH] Remove export on `rpc` --- eth-rpc/server/servertypes.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth-rpc/server/servertypes.nim b/eth-rpc/server/servertypes.nim index bf027d3..b48ab00 100644 --- a/eth-rpc/server/servertypes.nim +++ b/eth-rpc/server/servertypes.nim @@ -71,18 +71,18 @@ macro rpc*(server: var RpcServer, path: string, body: untyped): untyped = if returnType == ident"JsonNode": # `JsonNode` results don't need conversion result.add( quote do: - proc `procName`*(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = + proc `procName`(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = `res` = await `doMain`(`paramsIdent`) ) else: result.add(quote do: - proc `procName`*(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = + proc `procName`(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = `res` = %await `doMain`(`paramsIdent`) ) else: # no return types, inline contents result.add(quote do: - proc `procName`*(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = + proc `procName`(`paramsIdent`: JsonNode): Future[JsonNode] {.async.} = `setup` `procBody` )