We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a7a19 commit 7a02ee0Copy full SHA for 7a02ee0
dash-spv/src/storage/disk/headers.rs
@@ -57,7 +57,7 @@ pub(super) async fn load_block_index(
57
) -> StorageResult<HashMap<BlockHash, u32>> {
58
let index_path = manager.base_path.join("headers/index.dat");
59
60
- if let Ok(content) = fs::read(&index_path) {
+ if let Ok(content) = tokio::fs::read(&index_path).await {
61
bincode::deserialize(&content)
62
.map_err(|e| StorageError::ReadFailed(format!("Failed to deserialize index: {}", e)))
63
} else {
0 commit comments