diff options
| author | jakka <jakka@jakka.su> | 2025-07-05 21:53:23 +0300 |
|---|---|---|
| committer | jakka <jakka@jakka.su> | 2025-07-05 21:53:23 +0300 |
| commit | 08628a9e8f2343241732969a27b4928eb06084a4 (patch) | |
| tree | a6ac6ef48d38f2a24e76c53bf3e04ca71ae4b690 /src/files.rs | |
| parent | 793a6a572d62a2ff0aa3c405897abff206516259 (diff) | |
switched to non-parallel file cleaning due to ds calls + db locking
Diffstat (limited to 'src/files.rs')
| -rw-r--r-- | src/files.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs index 39c9c9f..afe6b0c 100644 --- a/src/files.rs +++ b/src/files.rs @@ -199,7 +199,7 @@ pub fn clean_files(pool: &Pool<SqliteConnectionManager>, handler: Arc<AtomicBool let spinner = ProgressBar::with_draw_target(None, ProgressDrawTarget::stdout_with_hz(60)) .with_style(ProgressStyle::with_template(SPINNER_TEMPLATE)?); - files.par_iter().for_each(|file| { + files.iter().for_each(|file| { if handler.load(Ordering::SeqCst) && !file.exists() { let conn = match pool.get() { Ok(conn) => Database::new(conn), |
