From a5a31667b01f532473d8bd0218c5c805d5266d96 Mon Sep 17 00:00:00 2001 From: Cong Chen Date: Fri, 30 Jun 2023 11:28:18 +0800 Subject: [PATCH] fix converse result of is_task_processing() --- index-scheduler/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index fc017395e..1f984e733 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -796,7 +796,7 @@ impl IndexScheduler { // Return true if there is at least one task that is processing. pub fn is_task_processing(&self) -> Result { - Ok(self.processing_tasks.read().unwrap().processing.is_empty()) + Ok(!self.processing_tasks.read().unwrap().processing.is_empty()) } /// Return true iff there is at least one task associated with this index