mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: restrict bodies downloader by number of blocks (#2656)
This commit is contained in:
@ -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..=
|
||||
|
||||
Reference in New Issue
Block a user