diff --git a/src/main.rs b/src/main.rs index 7431b45f..67d96fa9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ mod drivers; mod hub; mod logger; mod protocol; +mod stats; use std::sync::Arc; @@ -31,6 +32,8 @@ async fn main() -> Result<()> { hub.add_driver(driver).await?; } + let _stats = stats::Stats::new(hub.clone(), tokio::time::Duration::from_secs(1)).await; + wait_ctrlc().await; for (id, driver_info) in hub.drivers().await? {