Stats and Cleanup-proccess beyond Hot-path

This commit is contained in:
Alexey
2026-05-10 13:43:41 +03:00
parent e10c070dc1
commit 090b2ca636
2 changed files with 44 additions and 16 deletions

View File

@@ -73,6 +73,11 @@ pub(crate) async fn spawn_runtime_tasks(
rc_clone.run_periodic_cleanup().await;
});
let stats_maintenance = stats.clone();
tokio::spawn(async move {
stats_maintenance.run_periodic_user_stats_maintenance().await;
});
let detected_ip_v4: Option<IpAddr> = probe.detected_ipv4.map(IpAddr::V4);
let detected_ip_v6: Option<IpAddr> = probe.detected_ipv6.map(IpAddr::V6);
debug!(