From 9c90264d5f8a5200ad719ef3d102c0fb726bb94a Mon Sep 17 00:00:00 2001 From: jakka Date: Fri, 10 Oct 2025 14:29:15 +0300 Subject: continued migrating to tokio --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index cb5ff66..5774e5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,13 +107,13 @@ fn main() -> Result<()> { if args.get_flag("clean") { let handler = running.clone(); - runtime.block_on(async { files::clean_files(&db.connect()?, handler).await })?; + runtime.block_on(async { files::clean_files(&db, handler).await })?; } if args.get_flag("doit") { let hanlder = running.clone(); let threads = *args.get_one::("threads").unwrap(); - files::reencode_files(&db, hanlder, threads, runtime); + files::reencode_files(&db, hanlder, threads, runtime)?; } Ok::<(), anyhow::Error>(()) -- cgit v1.3.1