mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
core/region_processor: temporarily disable stat output
This commit is contained in:
parent
38da1616d5
commit
46c04e632f
1 changed files with 12 additions and 22 deletions
|
@ -205,29 +205,19 @@ impl<'a> RegionProcessor<'a> {
|
||||||
|
|
||||||
info!("Processing region files...");
|
info!("Processing region files...");
|
||||||
|
|
||||||
let mut results = vec![];
|
regions.par_iter().for_each(|&coords| {
|
||||||
regions
|
let result = self.process_region(coords);
|
||||||
.par_iter()
|
if let Err(err) = &result {
|
||||||
.map(|&coords| {
|
error!("Failed to process region {:?}: {:?}", coords, err);
|
||||||
let result = self.process_region(coords);
|
}
|
||||||
if let Err(err) = &result {
|
});
|
||||||
error!("Failed to process region {:?}: {:?}", coords, err);
|
|
||||||
}
|
|
||||||
result
|
|
||||||
})
|
|
||||||
.collect_into_vec(&mut results);
|
|
||||||
|
|
||||||
let processed = results
|
// info!(
|
||||||
.iter()
|
// "Processed region files ({} processed, {} unchanged, {} errors)",
|
||||||
.filter(|result| matches!(result, Ok(true)))
|
// processed,
|
||||||
.count();
|
// results.len() - processed,
|
||||||
let errors = results.iter().filter(|result| result.is_err()).count();
|
// errors,
|
||||||
info!(
|
// );
|
||||||
"Processed region files ({} processed, {} unchanged, {} errors)",
|
|
||||||
processed,
|
|
||||||
results.len() - processed,
|
|
||||||
errors,
|
|
||||||
);
|
|
||||||
|
|
||||||
Ok(regions)
|
Ok(regions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue