summaryrefslogtreecommitdiff
path: root/src/files.rs
diff options
context:
space:
mode:
authorjakka <jakkadoujin@gmail.com>2025-07-02 11:51:41 +0300
committerjakka <jakkadoujin@gmail.com>2025-07-02 11:51:41 +0300
commitd0c67d99c4f7ac4f90e244ae1a7afee595c396a9 (patch)
treea03e205fe09fb5cbdc6e8b9057d01d67187bc9e0 /src/files.rs
parent75a1804c370f7b25540744fcd9f1ae89dedaf7ad (diff)
removed tokio deps
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs
index b23f6a6..29cd2a9 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -105,9 +105,7 @@ pub fn index_files_recursively(
.into_iter()
.par_bridge()
.for_each(|entry| {
- if !running.load(Ordering::SeqCst) {
- return;
- } else {
+ if running.load(Ordering::SeqCst) {
let path = entry.unwrap().into_path();
if !path.is_file() {
return;