mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Remove the possibility to fail fetching the env info
This commit is contained in:
parent
d050c9b4ae
commit
34c67ac389
2 changed files with 4 additions and 7 deletions
|
@ -308,8 +308,8 @@ impl Index {
|
|||
///
|
||||
/// This value is the maximum between the map size passed during the opening of the index
|
||||
/// and the on-disk size of the index at the time of opening.
|
||||
pub fn map_size(&self) -> Result<usize> {
|
||||
Ok(self.env.info().map_size) // TODO remove Result
|
||||
pub fn map_size(&self) -> usize {
|
||||
self.env.info().map_size
|
||||
}
|
||||
|
||||
pub fn copy_to_path<P: AsRef<Path>>(&self, path: P, option: CompactionOption) -> Result<File> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue