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...");
|
||||
|
||||
let mut results = vec![];
|
||||
regions
|
||||
.par_iter()
|
||||
.map(|&coords| {
|
||||
let result = self.process_region(coords);
|
||||
if let Err(err) = &result {
|
||||
error!("Failed to process region {:?}: {:?}", coords, err);
|
||||
}
|
||||
result
|
||||
})
|
||||
.collect_into_vec(&mut results);
|
||||
regions.par_iter().for_each(|&coords| {
|
||||
let result = self.process_region(coords);
|
||||
if let Err(err) = &result {
|
||||
error!("Failed to process region {:?}: {:?}", coords, err);
|
||||
}
|
||||
});
|
||||
|
||||
let processed = results
|
||||
.iter()
|
||||
.filter(|result| matches!(result, Ok(true)))
|
||||
.count();
|
||||
let errors = results.iter().filter(|result| result.is_err()).count();
|
||||
info!(
|
||||
"Processed region files ({} processed, {} unchanged, {} errors)",
|
||||
processed,
|
||||
results.len() - processed,
|
||||
errors,
|
||||
);
|
||||
// info!(
|
||||
// "Processed region files ({} processed, {} unchanged, {} errors)",
|
||||
// processed,
|
||||
// results.len() - processed,
|
||||
// errors,
|
||||
// );
|
||||
|
||||
Ok(regions)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue