diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/files.rs | 2 | ||||
| -rw-r--r-- | src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/files.rs b/src/files.rs index e29406d..78947a4 100644 --- a/src/files.rs +++ b/src/files.rs @@ -119,7 +119,7 @@ pub async fn index_files_recursively( && handler.load(Ordering::SeqCst) { #[allow(unused_variables)] - if let Err(error) = smol::block_on(async { handle_file(&path, conn) }).await { + if let Err(error) = smol::block_on(async { handle_file(&path, conn).await }) { #[cfg(not(test))] bar.println(format!("{}", FileError::new(&path, error))); } else { diff --git a/src/main.rs b/src/main.rs index e9543f8..d38d0d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,7 +102,7 @@ fn main() -> Result<()> { if let Some(realpath) = path { let hanlder = running.clone(); - files::index_files_recursively(realpath, &db.connect()?, hanlder)?; + files::index_files_recursively(realpath, &db.connect()?, hanlder).await?; } if args.get_flag("clean") { |
