Skip to content

Commit

Permalink
src: lib: stats: underline unused property (clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Oct 29, 2024
1 parent bdc7e2e commit 945a560
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lazy_static! {
#[derive(Clone)]
struct Stats {
sender: mpsc::Sender<StatsCommand>,
task: Arc<Mutex<tokio::task::JoinHandle<()>>>,
_task: Arc<Mutex<tokio::task::JoinHandle<()>>>,
}

#[derive(Debug, Clone, Default, Serialize)]
Expand Down Expand Up @@ -59,8 +59,8 @@ impl Stats {
fn new(update_period: tokio::time::Duration) -> Self {
let (sender, receiver) = mpsc::channel(32);
let actor = StatsActor::new(update_period);
let task = Arc::new(Mutex::new(tokio::spawn(actor.start(receiver))));
Self { sender, task }
let _task = Arc::new(Mutex::new(tokio::spawn(actor.start(receiver))));
Self { sender, _task }
}
}

Expand Down Expand Up @@ -155,7 +155,7 @@ impl StatsInner {
last_message_time_us: current_stats.last_update_us,
bytes: byte_stats,
messages: message_stats,
delay_stats: delay_stats,
delay_stats,
}
}
}
Expand Down

0 comments on commit 945a560

Please sign in to comment.