pub async fn stat_collector(
config: Config,
maybe_locked_stats: Option<Arc<RwLock<MonitordStats>>>,
output_stats: bool,
) -> Result<()>
Expand description
Main statictic collection function running what’s required by configuration in parallel Takes an optional locked stats struct to update and to output stats to STDOUT or not