Skip to content

Commit 7a02ee0

Browse files
committed
read block index operation made async
1 parent 11a7a19 commit 7a02ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash-spv/src/storage/disk/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub(super) async fn load_block_index(
5757
) -> StorageResult<HashMap<BlockHash, u32>> {
5858
let index_path = manager.base_path.join("headers/index.dat");
5959

60-
if let Ok(content) = fs::read(&index_path) {
60+
if let Ok(content) = tokio::fs::read(&index_path).await {
6161
bincode::deserialize(&content)
6262
.map_err(|e| StorageError::ReadFailed(format!("Failed to deserialize index: {}", e)))
6363
} else {

0 commit comments

Comments
 (0)