mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Modifiy visibility for request functions (#2826)
This commit is contained in:
parent
136a4ba207
commit
884851cdeb
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
@ -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()))?;
|
||||
|
|
Loading…
Reference in a new issue