mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Apply suggestions from code review
Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
parent
6609f9e3be
commit
df6ba0e824
3 changed files with 3 additions and 11 deletions
|
@ -200,7 +200,7 @@ where
|
|||
let temp_dump_file = tempfile::NamedTempFile::new_in(&self.path)?;
|
||||
compression::to_tar_gz(temp_dump_path, temp_dump_file.path())?;
|
||||
|
||||
let dump_path = self.path.join(format!("{}.dump", self.uid));
|
||||
let dump_path = self.path.join(self.uid).with_extension("dump");
|
||||
temp_dump_file.persist(&dump_path)?;
|
||||
|
||||
Ok(dump_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue