File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
rust/cardano-chain-follower/src/turbo_downloader Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -513,6 +513,8 @@ impl ParallelDownloadProcessor {
513513 work_queue : & crossbeam_channel:: Receiver < DlWorkOrder > ,
514514 chain : & Network ,
515515 ) {
516+ const GET_RANGE_NUM_OF_TRIES : u8 = 5 ;
517+
516518 debug ! ( "Worker {worker_id} started" ) ;
517519
518520 // Each worker has its own http_client, so there is no cross worker pathology
@@ -538,7 +540,7 @@ impl ParallelDownloadProcessor {
538540 }
539541 let mut block = None ;
540542 // debug!("Worker {worker_id} DL chunk {next_chunk}");
541- for attempt in 1u8 ..6 {
543+ for attempt in 1u8 ..= GET_RANGE_NUM_OF_TRIES {
542544 block = match params. get_range ( & http_agent, next_chunk) {
543545 Ok ( block) => Some ( block) ,
544546 Err ( error) => {
You can’t perform that action at this time.
0 commit comments