async fn serve_metrics(
    saved_networks: Arc<SavedNetworksManager>,
    cobalt_fut: impl Future<Output = ()>,
) -> Result<(), Error> {
    let record_metrics_fut = saved_networks_manager_metrics_loop(saved_networks);
    try_join(record_metrics_fut.map(|()| Ok(())), cobalt_fut.map(|()| Ok(()))).await.map(|_| ())
}
/// Runs the recording and sending of metrics to Cobalt.
Runs the recording and sending of metrics to Cobalt.
Runs the recording and sending of metrics to Cobalt .
async fn serve_metrics(
    saved_networks: Arc<SavedNetworksManager>,
    cobalt_fut: impl Future<Output = ()>,
) -> Result<(), Error> {
    let record_metrics_fut = saved_networks_manager_metrics_loop(saved_networks);
    try_join(record_metrics_fut.map(|()| Ok(())), cobalt_fut.map(|()| Ok(()))).await.map(|_| ())
}
async fn serve_metrics ( saved_networks : Arc < SavedNetworksManager > , cobalt_fut : impl Future < Output = ( ) > , ) -> Result < ( ) , Error > { let record_metrics_fut = saved_networks_manager_metrics_loop ( saved_networks ) ; try_join ( record_metrics_fut . map ( | ( ) | Ok ( ( ) ) ) , cobalt_fut . map ( | ( ) | Ok ( ( ) ) ) ) . await . map ( | _ | ( ) ) }
Runs the recording and sending of metrics to Cobalt.
Runs the recording and sending of metrics to Cobalt .
saved_networks
Arc<SavedNetworksManager>
cobalt_fut
impl Future<Output = ()>
saved_networks
Arc<SavedNetworksManager>
cobalt_fut
impl Future<Output = ()>