Compare commits
No commits in common. "f943abeed22d2586d4cf05d64a6d9a1b19629a4c" and "cf2fa453dbdf6897663295d3871f9fa316704df5" have entirely different histories.
f943abeed2
...
cf2fa453db
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "api-grub"
|
name = "api-grub"
|
||||||
version = "1.0.11"
|
version = "1.0.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Vladislav Drozdov <maseeeeeeeed@gmail.com>"]
|
authors = ["Vladislav Drozdov <maseeeeeeeed@gmail.com>"]
|
||||||
description = "API poller for ZVKS project"
|
description = "API poller for ZVKS project"
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ impl MonitoringImporter {
|
||||||
.post(url)
|
.post(url)
|
||||||
.timeout(tokio::time::Duration::from_secs(self.timeout as u64))
|
.timeout(tokio::time::Duration::from_secs(self.timeout as u64))
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.bearer_auth(&self.access_token)
|
.header("access-token", &self.access_token)
|
||||||
.json(&Query::default());
|
.json(&Query::default());
|
||||||
let resp = client.send().await?.text().await?;
|
let resp = client.send().await?.text().await?;
|
||||||
let resp: Value = serde_json::from_str(&resp)?;
|
let resp: Value = serde_json::from_str(&resp)?;
|
||||||
|
|
@ -307,7 +307,7 @@ impl MonitoringImporter {
|
||||||
.get(format!("http://{}/e-nms/mirror/measure/{}", arc.ip, &measure))
|
.get(format!("http://{}/e-nms/mirror/measure/{}", arc.ip, &measure))
|
||||||
.timeout(tokio::time::Duration::from_secs(arc.timeout as u64))
|
.timeout(tokio::time::Duration::from_secs(arc.timeout as u64))
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.bearer_auth(&arc.access_token)
|
.header("access-token", &arc.access_token)
|
||||||
.send().await?
|
.send().await?
|
||||||
.text().await?;
|
.text().await?;
|
||||||
tokio::task::yield_now().await;
|
tokio::task::yield_now().await;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue