fix most of the index module

This commit is contained in:
Tamo 2022-09-07 20:30:33 +02:00 committed by Clément Renault
parent e7b2b9306a
commit fda5ca60bd
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 45 additions and 19 deletions

View file

@ -12,7 +12,6 @@ use milli::{obkv_to_json, FieldDistribution, DEFAULT_VALUES_PER_FACET};
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
use time::OffsetDateTime;
use uuid::Uuid;
use crate::index::search::DEFAULT_PAGINATION_MAX_TOTAL_HITS;
@ -298,7 +297,7 @@ impl Index {
}
pub fn size(&self) -> Result<u64> {
self.inner.on_disk_size()
Ok(self.inner.on_disk_size()?)
}
pub fn snapshot(&self, path: impl AsRef<Path>) -> Result<()> {