perf: restrict bodies downloader by number of blocks (#2656)

This commit is contained in:
Matthias Seitz
2023-05-13 19:18:01 +02:00
committed by GitHub
parent 4d0406b383
commit 99e6ee7a86
7 changed files with 127 additions and 64 deletions

View File

@ -160,8 +160,8 @@ impl Command {
downloader: BodiesDownloaderBuilder::default()
.with_stream_batch_size(batch_size as usize)
.with_request_limit(config.stages.bodies.downloader_request_limit)
.with_max_buffered_responses(
config.stages.bodies.downloader_max_buffered_responses,
.with_max_buffered_blocks(
config.stages.bodies.downloader_max_buffered_blocks,
)
.with_concurrent_requests_range(
config.stages.bodies.downloader_min_concurrent_requests..=