Apply suggested changes from PR review

This commit is contained in:
Loïc Lecrenier 2022-10-15 11:03:24 +02:00 committed by Clément Renault
parent 4bd8607cf9
commit 9067148270
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 3 additions and 6 deletions

View file

@ -840,7 +840,7 @@ impl IndexScheduler {
let mut affected_kinds = HashSet::new();
for task_id in to_delete_tasks.iter() {
if let Some(task) = self.all_tasks.get(wtxn, &BEU32::new(task_id))? {
if let Some(task) = self.get_task(wtxn, task_id)? {
if let Some(task_indexes) = task.indexes() {
affected_indexes.extend(task_indexes.into_iter().map(|x| x.to_owned()));
}