mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Replace Index::new_with_creation_dates(...) with Index::new(...)
This commit is contained in:
parent
5a0a0468df
commit
4e175ae882
@ -71,9 +71,12 @@ impl IndexMapper {
|
|||||||
options.map_size(clamp_to_page_size(self.index_size));
|
options.map_size(clamp_to_page_size(self.index_size));
|
||||||
options.max_readers(1024);
|
options.max_readers(1024);
|
||||||
|
|
||||||
let (created, updated) = date.unwrap();
|
if date == None {
|
||||||
|
Ok(Index::new(options, path)?)
|
||||||
Ok(Index::new_with_creation_dates(options, path, created, updated)?)
|
} else {
|
||||||
|
let (created, updated) = date.unwrap();
|
||||||
|
Ok(Index::new_with_creation_dates(options, path, created, updated)?)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get or create the index.
|
/// Get or create the index.
|
||||||
|
Loading…
Reference in New Issue
Block a user