Remove redundant date-setting

This commit is contained in:
amab8901 2022-12-16 08:32:44 +01:00
parent 4e175ae882
commit b4a73f2d74

View File

@ -187,8 +187,7 @@ impl IndexMapper {
Entry::Vacant(entry) => { Entry::Vacant(entry) => {
let index_path = self.base_path.join(uuid.to_string()); let index_path = self.base_path.join(uuid.to_string());
let date = Some(( time::OffsetDateTime::now_utc(), time::OffsetDateTime::now_utc() )); let index = self.create_or_open_index(&index_path, None)?;
let index = self.create_or_open_index(&index_path, date)?;
entry.insert(Available(index.clone())); entry.insert(Available(index.clone()));
index index
} }