mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +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,
|
url: &str,
|
||||||
api_secret: Option<String>,
|
api_secret: Option<String>,
|
||||||
input: &IN,
|
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 task = send_request_async(req);
|
||||||
let mut rt =
|
let mut rt =
|
||||||
Runtime::new().context(ErrorKind::Internal("can't create Tokio runtime".to_owned()))?;
|
Runtime::new().context(ErrorKind::Internal("can't create Tokio runtime".to_owned()))?;
|
||||||
|
|
Loading…
Reference in a new issue