Skip to content

Commit

Permalink
comment on chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
MujkicA committed Jan 13, 2025
1 parent b9e04f2 commit 8892e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/adapters/storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ mod tests {
storage: impl services::block_importer::port::Storage,
range: RangeInclusive<u32>,
) {
// Insert blocks in chunks to enable setting up the db for a load test
let chunk_size = 10_000;
for chunk in range.chunks(chunk_size).into_iter() {
let blocks = chunk
Expand Down

0 comments on commit 8892e62

Please sign in to comment.