Make the indexing process send the new progress step events

This commit is contained in:
Clément Renault 2020-11-11 12:39:09 +01:00
parent e78b96a657
commit ea43080548
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 167 additions and 49 deletions

View file

@ -21,7 +21,7 @@ pub enum UpdateIndexingStep {
}
impl UpdateIndexingStep {
pub const fn step_index(&self) -> usize {
pub const fn step(&self) -> usize {
match self {
TransformFromUserIntoGenericFormat { .. } => 0,
ComputeIdsAndMergeDocuments { .. } => 1,