mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
use RoaringBitmap::is_empty
instead
This commit is contained in:
parent
6d4981ec25
commit
e3fc7112bc
@ -796,8 +796,7 @@ impl IndexScheduler {
|
||||
|
||||
// Return true if there is at least one task that is processing.
|
||||
pub fn is_task_processing(&self) -> Result<bool> {
|
||||
let processing_tasks = self.processing_tasks.read().unwrap().processing.len();
|
||||
Ok(processing_tasks > 0)
|
||||
Ok(self.processing_tasks.read().unwrap().processing.is_empty())
|
||||
}
|
||||
|
||||
/// Return true iff there is at least one task associated with this index
|
||||
|
Loading…
Reference in New Issue
Block a user