diff --git a/bin/core/src/monitor.rs b/bin/core/src/monitor.rs index dc312bcf8..9b9c10d89 100644 --- a/bin/core/src/monitor.rs +++ b/bin/core/src/monitor.rs @@ -157,8 +157,6 @@ impl State { async fn handle_server_stats(&self, server: &Server, stats: AllSystemStats) { let inner = || async { - - let health = get_server_health(server, &stats); anyhow::Ok(()) diff --git a/bin/core/src/state.rs b/bin/core/src/state.rs index d6cd24da9..511ccb6fb 100644 --- a/bin/core/src/state.rs +++ b/bin/core/src/state.rs @@ -67,8 +67,8 @@ impl State { } .into(); - // let state_clone = state.clone(); - // tokio::spawn(async move { state_clone.monitor().await }); + let state_clone = state.clone(); + tokio::spawn(async move { state_clone.monitor().await }); Ok(state) }