mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 19:31:07 +00:00
av-store: create a db dir if missing (#1819)
This commit is contained in:
1 parent
c7e729e07b
commit
979b9c5556
1 file changed
+1
@@ -106,6 +106,7 @@ impl AvailabilityStoreSubsystem {
|
||||
format!("Bad database path: {:?}", config.path),
|
||||
))?;
|
||||
|
||||
std::fs::create_dir_all(&path)?;
|
||||
let db = Database::open(&db_config, &path)?;
|
||||
|
||||
Ok(Self {
|
||||
|
||||
Reference in new issue
Block a user