From 7cdeb59400180e908b021f33183a09abbe06686a Mon Sep 17 00:00:00 2001 From: jaspervdm Date: Wed, 15 May 2019 14:49:33 +0200 Subject: [PATCH] Modifiy visibility for request functions --- api/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/client.rs b/api/src/client.rs index fb3b6b4769..44a1a9c2a8 100644 --- a/api/src/client.rs +++ b/api/src/client.rs @@ -156,7 +156,7 @@ fn build_request<'a>( }) } -fn create_post_request( +pub fn create_post_request( url: &str, api_secret: Option, input: &IN, @@ -223,7 +223,7 @@ fn send_request_async(req: Request) -> Box) -> Result { +pub fn send_request(req: Request) -> Result { let task = send_request_async(req); let mut rt = Runtime::new().context(ErrorKind::Internal("can't create Tokio runtime".to_owned()))?;