mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-19 01:18:31 +08:00
fix converse result of is_task_processing()
This commit is contained in:
parent
e3fc7112bc
commit
a5a31667b0
@ -796,7 +796,7 @@ impl IndexScheduler {
|
|||||||
|
|
||||||
// Return true if there is at least one task that is processing.
|
// Return true if there is at least one task that is processing.
|
||||||
pub fn is_task_processing(&self) -> Result<bool> {
|
pub fn is_task_processing(&self) -> Result<bool> {
|
||||||
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
|
/// Return true iff there is at least one task associated with this index
|
||||||
|
Loading…
Reference in New Issue
Block a user