make the project compile again

This commit is contained in:
Tamo 2022-09-07 20:38:57 +02:00 committed by Clément Renault
parent 46b8ebcab4
commit 7879189c6b
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 8 additions and 8 deletions

View file

@ -215,7 +215,7 @@ impl IndexScheduler {
continue;
}
};
let batch = match self.get_next_batch(&wtxn) {
let mut batch = match self.get_next_batch(&wtxn) {
Ok(batch) => batch,
Err(e) => {
log::error!("{}", e);
@ -232,7 +232,7 @@ impl IndexScheduler {
fn process_batch(&self, wtxn: &mut RwTxn, batch: &mut Batch) -> Result<()> {
match batch {
Batch::One(task) => match task.kind {
Batch::One(task) => match &task.kind {
KindWithContent::ClearAllDocuments { index_name } => {
self.index(&index_name)?.clear_documents()?;
}