mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
apply review comments
This commit is contained in:
parent
bf94f89035
commit
a858531574
4 changed files with 9 additions and 7 deletions
|
@ -903,8 +903,8 @@ impl IndexScheduler {
|
|||
}
|
||||
|
||||
/// The size on disk taken by all the updates files contained in the `IndexScheduler`, in bytes.
|
||||
pub fn update_file_size(&self) -> Result<u64> {
|
||||
Ok(self.file_store.update_total_size()?)
|
||||
pub fn compute_update_file_size(&self) -> Result<u64> {
|
||||
Ok(self.file_store.compute_total_size()?)
|
||||
}
|
||||
|
||||
/// Delete a file from the index scheduler.
|
||||
|
|
|
@ -514,7 +514,7 @@ impl IndexScheduler {
|
|||
.unwrap()
|
||||
.any(|uuid| uuid.as_ref().unwrap() == &content_file),
|
||||
"Could not find uuid `{content_file}` in the file_store. Available uuids are {:?}.",
|
||||
self.file_store.all_uuids().unwrap().collect::<Result<Vec<_>>>().unwrap(),
|
||||
self.file_store.all_uuids().unwrap().collect::<std::result::Result<Vec<_>, file_store::Error>>().unwrap(),
|
||||
);
|
||||
}
|
||||
Status::Succeeded | Status::Failed | Status::Canceled => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue