From b4a73f2d74875b9ed8d1ee00492c4c9d99baa2f2 Mon Sep 17 00:00:00 2001 From: amab8901 Date: Fri, 16 Dec 2022 08:32:44 +0100 Subject: [PATCH] Remove redundant date-setting --- index-scheduler/src/index_mapper.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index-scheduler/src/index_mapper.rs b/index-scheduler/src/index_mapper.rs index 95fc3b754..b49614331 100644 --- a/index-scheduler/src/index_mapper.rs +++ b/index-scheduler/src/index_mapper.rs @@ -187,8 +187,7 @@ impl IndexMapper { Entry::Vacant(entry) => { 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, date)?; + let index = self.create_or_open_index(&index_path, None)?; entry.insert(Available(index.clone())); index }