Use different directory for rocksdb database
This commit is contained in:
parent
b6197ce04d
commit
c077e8dbb9
@ -28,10 +28,9 @@ impl DiskDB {
|
||||
/*
|
||||
* Initialise the path
|
||||
*/
|
||||
let mut db_path = path.join("rocksdb");
|
||||
fs::create_dir_all(&db_path)
|
||||
.expect(&format!("Unable to create {:?}", &db_path));
|
||||
db_path = db_path.join("database");
|
||||
fs::create_dir_all(&path)
|
||||
.expect(&format!("Unable to create {:?}", &path));
|
||||
let db_path = path.join("database");
|
||||
|
||||
/*
|
||||
* Open the database
|
||||
|
Loading…
Reference in New Issue
Block a user