Fix Lmdb receipt store file path
Change the `dir_path` value that is given when creating a new
`LmdbReceiptStore` to be the path of the directory that the LMDB file
should be created in rather than the full file path of the database
file.
@@ -502,11 +502,11 @@ impl ServiceFactory for ScabbardFactory {
)
})?;
- let purge_db_path = receipt_db_path.clone();
+ let purge_db_path = receipt_db_path;
(
Arc::new(RwLock::new(
LmdbReceiptStore::new(
- &receipt_db_path,
+ receipt_db_dir_path,
&[file.clone()],
file,
Some(*db_size),
