Adjust + Cleanup changes.

Indeed, I missed some of the changed that were introduced by #3190.
This commit is contained in:
funilrys 2022-12-22 17:53:33 +01:00
parent 4e6c663a2e
commit 0bc4572905
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6
2 changed files with 2 additions and 13 deletions

View File

@ -210,15 +210,11 @@ impl V5IndexReader {
if *task.index_uid().unwrap_or_default().to_string() == name {
if updated_at.is_none() {
updated_at = task.updated_at()
}
if created_at.is_none() {
created_at = task.created_at()
updated_at = task.processed_at()
}
if task.id as usize == index_metadata.creation_task_id {
created_at = task.processed_at();
created_at = task.created_at();
break;
}

View File

@ -179,13 +179,6 @@ impl Task {
_ => None,
}
}
pub fn updated_at(&self) -> Option<OffsetDateTime> {
match self.events.last() {
Some(TaskEvent::Created(ts)) => Some(*ts),
_ => None,
}
}
}
impl IndexUid {