Skip to content

Commit

Permalink
src: Run stats in main
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Sep 8, 2024
1 parent 67a2027 commit 0ab4b20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mod drivers;
mod hub;
mod logger;
mod protocol;
mod stats;

use std::sync::Arc;

Expand Down Expand Up @@ -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? {
Expand Down

0 comments on commit 0ab4b20

Please sign in to comment.