mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Remove redundant date-setting
This commit is contained in:
parent
4e175ae882
commit
b4a73f2d74
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user