We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad2c04a commit af8582eCopy full SHA for af8582e
1 file changed
dash-spv/src/main.rs
@@ -320,13 +320,7 @@ async fn run() -> Result<(), Box<dyn std::error::Error>> {
320
}
321
};
322
323
- let path = if let Some(path) = &config.storage_path {
324
- path.clone()
325
- } else {
326
- "./.tmp/main-exec-storage".into()
327
- };
328
-
329
- let storage_manager = match dash_spv::storage::DiskStorageManager::new(path.clone()).await {
+ let storage_manager = match dash_spv::storage::DiskStorageManager::new(&config).await {
330
Ok(sm) => sm,
331
Err(e) => {
332
eprintln!("Failed to create disk storage manager: {}", e);
0 commit comments