Remove the possibility to fail fetching the env info

This commit is contained in:
Clément Renault 2023-11-28 14:31:23 +01:00
parent d050c9b4ae
commit 34c67ac389
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 4 additions and 7 deletions

View file

@ -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> {