From e3c0224dc25fd539f82f4a771371ea70d09de439 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 7 Jan 2021 16:48:06 +0100 Subject: [PATCH] Update status with current layer --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 005ecd8..d324742 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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);