fix no-analytics

This commit is contained in:
mpostma 2022-01-12 15:57:31 +01:00
parent f6d53e03f1
commit 0c1a3d59eb
5 changed files with 23 additions and 71 deletions

View file

@ -28,9 +28,7 @@ impl Index {
pub fn dump(&self, path: impl AsRef<Path>) -> Result<()> {
// acquire write txn make sure any ongoing write is finished before we start.
let txn = self.env.write_txn()?;
let path = path
.as_ref()
.join(format!("indexes/{}", self.uuid.to_string()));
let path = path.as_ref().join(format!("indexes/{}", self.uuid));
create_dir_all(&path)?;