Bump reqwest from 0.9.24 to 0.10.0 (#7642)
* Bump reqwest from 0.9.24 to 0.10.0 Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.9.24 to 0.10.0. - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Make reqwest::blocking specific Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
committed by
Tyera Eulberg
parent
07855e3125
commit
57858b8015
@ -12,7 +12,7 @@ edition = "2018"
|
||||
env_logger = "0.7.1"
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.8"
|
||||
reqwest = { version = "0.9.24", default-features = false, features = ["rustls-tls"] }
|
||||
reqwest = { version = "0.10.0", default-features = false, features = ["blocking", "rustls-tls"] }
|
||||
solana-sdk = { path = "../sdk", version = "0.23.0" }
|
||||
sys-info = "0.5.8"
|
||||
|
||||
|
@ -97,12 +97,12 @@ impl MetricsWriter for InfluxDbMetricsWriter {
|
||||
line.push_str(&format!(" {}\n", &point.timestamp));
|
||||
}
|
||||
|
||||
let client = reqwest::Client::builder()
|
||||
let client = reqwest::blocking::Client::builder()
|
||||
.timeout(Duration::from_secs(5))
|
||||
.build()
|
||||
.unwrap();
|
||||
let response = client.post(write_url.as_str()).body(line).send();
|
||||
if let Ok(mut resp) = response {
|
||||
if let Ok(resp) = response {
|
||||
info!(
|
||||
"submit response: {} {}",
|
||||
resp.status(),
|
||||
@ -402,7 +402,7 @@ pub fn query(q: &str) -> Result<String, String> {
|
||||
&config.host, &config.username, &config.password, &q
|
||||
);
|
||||
|
||||
let response = reqwest::get(query_url.as_str())
|
||||
let response = reqwest::blocking::get(query_url.as_str())
|
||||
.map_err(|err| err.to_string())?
|
||||
.text()
|
||||
.map_err(|err| err.to_string())?;
|
||||
|
Reference in New Issue
Block a user