diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<usize>("threads").unwrap(); - files::reencode_files(&db, hanlder, threads, runtime); + files::reencode_files(&db, hanlder, threads, runtime)?; } Ok::<(), anyhow::Error>(()) |
