async fn saved_networks_manager_metrics_loop(saved_networks: Arc<SavedNetworksManager>) {
    loop {
        saved_networks.record_periodic_metrics().await;
        fasync::Timer::new(24.hours().after_now()).await;
    }
}
/// Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours .
async fn saved_networks_manager_metrics_loop(saved_networks: Arc<SavedNetworksManager>) {
    loop {
        saved_networks.record_periodic_metrics().await;
        fasync::Timer::new(24.hours().after_now()).await;
    }
}
async fn saved_networks_manager_metrics_loop ( saved_networks : Arc < SavedNetworksManager > ) { loop { saved_networks . record_periodic_metrics ( ) . await ; fasync :: Timer :: new ( 24 . hours ( ) . after_now ( ) ) . await ; } }
Calls the metric recording function immediately and every 24 hours.
Calls the metric recording function immediately and every 24 hours .
saved_networks
Arc<SavedNetworksManager>
saved_networks
Arc<SavedNetworksManager>