remove unneeded deps

This commit is contained in:
Chris Beck
2025-12-04 16:42:48 -07:00
parent c44b515ce0
commit 3bcdad62fc
8 changed files with 61 additions and 293 deletions
-1
View File
@@ -23,7 +23,6 @@ hyper-util = { workspace = true }
jsonrpsee = { workspace = true }
rand = { workspace = true }
reqwest = { workspace = true }
rust_decimal = { workspace = true }
rustls = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
+2 -2
View File
@@ -8,7 +8,7 @@ use prom_client::{
};
use rand::RngCore;
use reqwest::Client as ReqwestClient;
use rust_decimal::Decimal;
use prom_client::MetricVal;
use std::{error::Error, str::FromStr, time::Duration};
use tracing::{info, warn};
use walkdir::WalkDir;
@@ -162,7 +162,7 @@ impl Plotter {
pub async fn oneoff_query(
&self,
query: String,
) -> Result<(ExtractLabels, Vec<Option<(f64, Decimal)>>), Box<dyn Error>> {
) -> Result<(ExtractLabels, Vec<Option<(f64, MetricVal)>>), Box<dyn Error>> {
info!("Prom query: {query}");
let vector: Vec<MetricValue> = QueryRequest { query, time: None }
.send_with_client(&self.reqwest_client, &self.config.prometheus_host)