Apply suggestions from code review

Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
marin 2021-06-01 11:18:37 +02:00 committed by GitHub
parent 6609f9e3be
commit df6ba0e824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View file

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