From d2b688af226df1bbc24931adee784ae01bf11b45 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 18 Sep 2025 10:39:31 -0500 Subject: [PATCH] Chore: Remove the lqstats program completely. --- src/rust/Cargo.lock | 9 --------- src/rust/Cargo.toml | 1 - src/rust/lqstats/Cargo.toml | 10 ---------- src/rust/lqstats/src/main.rs | 26 -------------------------- 4 files changed, 46 deletions(-) delete mode 100644 src/rust/lqstats/Cargo.toml delete mode 100644 src/rust/lqstats/src/main.rs diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock index 82dc7446..a1257511 100644 --- a/src/rust/Cargo.lock +++ b/src/rust/Cargo.lock @@ -2171,15 +2171,6 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "lqstats" -version = "0.1.0" -dependencies = [ - "anyhow", - "lqos_bus", - "tokio", -] - [[package]] name = "lqtop" version = "0.1.0" diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index dd730370..5ae04eaf 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -28,7 +28,6 @@ members = [ "lqos_setup", # A quick CLI setup for first-time users "lqos_heimdall", # Library for managing Heimdall flow watching "lqos_map_perf", # A CLI tool for testing eBPF map performance - "lqstats", # A CLI utility for retrieving long-term statistics "lts_client", # Shared data and client-side code for long-term stats "uisp", # REST support for the UISP API "uisp_integration", # UISP Integration in Rust diff --git a/src/rust/lqstats/Cargo.toml b/src/rust/lqstats/Cargo.toml deleted file mode 100644 index 42687778..00000000 --- a/src/rust/lqstats/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "lqstats" -version = "0.1.0" -edition = "2024" -license = "GPL-2.0-only" - -[dependencies] -tokio = { workspace = true } -anyhow = { workspace = true } -lqos_bus = { path = "../lqos_bus" } \ No newline at end of file diff --git a/src/rust/lqstats/src/main.rs b/src/rust/lqstats/src/main.rs deleted file mode 100644 index da0dce50..00000000 --- a/src/rust/lqstats/src/main.rs +++ /dev/null @@ -1,26 +0,0 @@ -use anyhow::Result; -use lqos_bus::{BusRequest, BusResponse, StatsRequest, bus_request}; - -#[tokio::main(flavor = "current_thread")] -pub async fn main() -> Result<()> { - for resp in bus_request(vec![BusRequest::GetLongTermStats( - StatsRequest::CurrentTotals, - )]) - .await? - { - if let BusResponse::LongTermTotals(stats) = resp { - println!("{stats:?}"); - } - } - for resp in bus_request(vec![BusRequest::GetLongTermStats(StatsRequest::AllHosts)]).await? { - if let BusResponse::LongTermHosts(stats) = resp { - println!("{stats:?}"); - } - } - for resp in bus_request(vec![BusRequest::GetLongTermStats(StatsRequest::Tree)]).await? { - if let BusResponse::LongTermTree(stats) = resp { - println!("{stats:?}"); - } - } - Ok(()) -} -- knotmirror 0.0.1