From db39cdcdc7b1ca1d2d355e3e80aa38478024f47e Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Fri, 14 May 2021 16:02:03 +0300 Subject: [PATCH] Fix chronicles compilation issue. (#6) Export address variable. --- presto/client.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/presto/client.nim b/presto/client.nim index 96c3162..78a4c53 100644 --- a/presto/client.nim +++ b/presto/client.nim @@ -8,7 +8,7 @@ # MIT license (LICENSE-MIT) import std/[macros, options, uri, sequtils] import chronos, chronos/apps/http/[httpcommon, httptable, httpclient] -import chronicles +import chronicles except error import httputils, stew/base10 import segpath, common, macrocommon, agent export httpclient, httptable, httpcommon, options, agent, httputils @@ -19,9 +19,11 @@ template meth*(v: HttpMethod) {.pragma.} type RestClient* = object of RootObj session: HttpSessionRef - address: HttpAddress + address*: HttpAddress agent: string + RestClientRef* = ref RestClient + RestPlainResponse* = object status*: int contentType*: string @@ -40,8 +42,6 @@ type RestReturnKind {.pure.} = enum Status, PlainResponse, GenericResponse, Value - RestClientRef* = ref RestClient - RestDefect* = object of Defect RestError* = object of CatchableError RestEncodingError* = object of RestError