Skip to content

Commit

Permalink
Modifiy visibility for request functions (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdm authored and yeastplume committed May 15, 2019
1 parent 136a4ba commit 884851c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fn build_request<'a>(
})
}

fn create_post_request<IN>(
pub fn create_post_request<IN>(
url: &str,
api_secret: Option<String>,
input: &IN,
Expand Down Expand Up @@ -223,7 +223,7 @@ fn send_request_async(req: Request<Body>) -> Box<dyn Future<Item = String, Error
)
}

fn send_request(req: Request<Body>) -> Result<String, Error> {
pub fn send_request(req: Request<Body>) -> Result<String, Error> {
let task = send_request_async(req);
let mut rt =
Runtime::new().context(ErrorKind::Internal("can't create Tokio runtime".to_owned()))?;
Expand Down

0 comments on commit 884851c

Please sign in to comment.