Skip to content

Commit af8582e

Browse files
committed
main.rs udpated
1 parent ad2c04a commit af8582e

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

dash-spv/src/main.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,7 @@ async fn run() -> Result<(), Box<dyn std::error::Error>> {
320320
}
321321
};
322322

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 {
323+
let storage_manager = match dash_spv::storage::DiskStorageManager::new(&config).await {
330324
Ok(sm) => sm,
331325
Err(e) => {
332326
eprintln!("Failed to create disk storage manager: {}", e);

0 commit comments

Comments
 (0)