From 04eceb7e3d748c23517485d89035848cfe58a334 Mon Sep 17 00:00:00 2001 From: jakka Date: Thu, 17 Jul 2025 12:34:41 +0300 Subject: test threading version without rayon --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 122ce60..d1e4562 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,11 +116,7 @@ fn main() -> Result<()> { if args.get_flag("doit") { let hanlder = running.clone(); let threads = *args.get_one::("threads").unwrap(); - let pool = rayon::ThreadPoolBuilder::new() - .num_threads(threads) - .build()?; - - pool.install(|| files::reencode_files(conn, hanlder))?; + files::reencode_files(conn, hanlder, threads)?; } Ok::<(), anyhow::Error>(()) } -- cgit v1.3.1