Skip to content

Commit 7bb6759

Browse files
authored
fix: fix block data hint migration vector allocation (#188)
1 parent 84ba25d commit 7bb6759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/database/migration/src/m20250408_150338_load_header_metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async fn download(url: &str) -> eyre::Result<Vec<u8>> {
125125
pb.set_position(0);
126126

127127
// init variables.
128-
let mut buf = Vec::with_capacity(total_size as usize);
128+
let mut buf = Vec::with_capacity(iterations as usize);
129129
let mut index = 0;
130130
let mut cursor = 0;
131131
let mut tasks = FuturesUnordered::new();

0 commit comments

Comments
 (0)