pub async fn update_unit_stats(
config: Arc<Config>,
locked_machine_stats: Arc<RwLock<MachineStats>>,
metrics: SharedMetrics,
) -> Result<UnitDiscovery>Expand description
Async wrapper that can update unit stats when passed a locked struct.