summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjakka <jakka@jakka.su>2025-10-09 15:08:19 +0300
committerjakka <jakka@jakka.su>2025-10-09 15:08:19 +0300
commit758eb9b36882310c1aa6c2e634d71f33fa85bd2b (patch)
tree61e309e77627bab9ea4c346ae30dea14e0e1a22d /src
parenta60b1ee24ec72b10af449b6f580136c21cf0e009 (diff)
fixed async
finished merging main and fixing async functions
Diffstat (limited to 'src')
-rw-r--r--src/files.rs2
-rw-r--r--src/main.rs2
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") {