mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Remove the IndexScheduler::notify method
This commit is contained in:
parent
19c6f8303f
commit
db9d1b18ca
@ -348,7 +348,8 @@ impl IndexScheduler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.notify();
|
// notify the scheduler loop to execute a new tick
|
||||||
|
self.wake_up.signal();
|
||||||
|
|
||||||
Ok(task.as_task_view())
|
Ok(task.as_task_view())
|
||||||
}
|
}
|
||||||
@ -438,11 +439,6 @@ impl IndexScheduler {
|
|||||||
|
|
||||||
Ok(processed_tasks)
|
Ok(processed_tasks)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Notify the scheduler there is or may be work to do.
|
|
||||||
pub fn notify(&self) {
|
|
||||||
self.wake_up.signal()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user