From da6b4b75763ab5bf7746d09a34796fff3925cd3c Mon Sep 17 00:00:00 2001 From: jakka Date: Wed, 2 Jul 2025 14:06:09 +0300 Subject: added missing bar incremental --- src/files.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index 152de36..601ea7c 100644 --- a/src/files.rs +++ b/src/files.rs @@ -165,8 +165,12 @@ pub fn reencode_files(conn: &Database, handler: Arc) -> Result<()> { if handler.load(Ordering::SeqCst) { if let Err(error) = handle_encode(file) { eprintln!("{}", FileError::new(file, error)); - } else if let Err(error) = smol::block_on(async { conn.update_file(file).await }) { - eprintln!("{}", FileError::new(file, error)); + } else { + if let Err(error) = smol::block_on(async { conn.update_file(file).await }) { + eprintln!("{}", FileError::new(file, error)); + } + #[cfg(not(test))] + bar.inc(1) } } }); -- cgit v1.3.1