Update status with current layer

This commit is contained in:
Dirkjan Ochtman 2021-01-07 16:48:06 +01:00
parent f61659cca5
commit e3c0224dc2
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ where
let max_batch_len = num_cpus::get() * 4;
for (layer, mut range) in ranges {
let num = if layer.0 > 0 { M } else { M * 2 };
#[cfg(feature = "indicatif")]
if let Some(bar) = &progress {
bar.set_message(&format!("Building index (layer {})", layer.0));
}
while range.start < range.end {
let len = min(range.len(), max_batch_len);