Skip to content

Commit 3096ad3

Browse files
author
Ludo Galabru
committed
fix: slow down initial configuration
1 parent 05b6d5c commit 3096ad3

File tree

1 file changed

+2
-2
lines changed
  • components/hord-cli/src/db

1 file changed

+2
-2
lines changed

components/hord-cli/src/db/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2295,12 +2295,12 @@ pub async fn rebuild_rocks_db(
22952295

22962296
let mut block_heights = VecDeque::from((start_block..=end_block).collect::<Vec<u64>>());
22972297

2298-
for _ in 0..hord_config.network_thread_max {
2298+
for _ in 0..4 {
22992299
if let Some(block_height) = block_heights.pop_front() {
23002300
let config = moved_config.clone();
23012301
let ctx = moved_ctx.clone();
23022302
let http_client = moved_http_client.clone();
2303-
sleep(Duration::from_millis(200));
2303+
sleep(Duration::from_millis(500));
23042304
set.spawn(try_download_block_bytes_with_retry(
23052305
http_client,
23062306
block_height,

0 commit comments

Comments
 (0)