mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Refactor
This commit is contained in:
@ -75,11 +75,10 @@ impl IndexMapper {
|
||||
options.map_size(clamp_to_page_size(self.index_size));
|
||||
options.max_readers(1024);
|
||||
|
||||
if date == None {
|
||||
Ok(Index::new(options, path)?)
|
||||
} else {
|
||||
let (created, updated) = date.unwrap();
|
||||
if let Some((created, updated)) = date {
|
||||
Ok(Index::new_with_creation_dates(options, path, created, updated)?)
|
||||
} else {
|
||||
Ok(Index::new(options, path)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user