mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
use RoaringBitmap::is_empty
instead
This commit is contained in:
parent
6d4981ec25
commit
e3fc7112bc
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue