mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
impl Default on Processing
This commit is contained in:
parent
986a99296d
commit
127171c812
@ -411,16 +411,21 @@ impl Scheduler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum Processing {
|
pub enum Processing {
|
||||||
DocumentAdditions(Vec<TaskId>),
|
DocumentAdditions(Vec<TaskId>),
|
||||||
IndexUpdate(TaskId),
|
IndexUpdate(TaskId),
|
||||||
Dump(TaskId),
|
Dump(TaskId),
|
||||||
/// Variant used when there is nothing to process.
|
/// Variant used when there is nothing to process.
|
||||||
#[default]
|
|
||||||
Nothing,
|
Nothing,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Processing {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::Nothing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
enum ProcessingIter<'a> {
|
enum ProcessingIter<'a> {
|
||||||
Many(slice::Iter<'a, TaskId>),
|
Many(slice::Iter<'a, TaskId>),
|
||||||
Single(Option<TaskId>),
|
Single(Option<TaskId>),
|
||||||
|
Loading…
Reference in New Issue
Block a user