chore(download): lower the buffer limit for bodies downloader (#1178)

This commit is contained in:
Roman Krasiuk
2023-02-06 14:32:36 +02:00
committed by GitHub
parent a40745bab9
commit bbcf3679cd

View File

@@ -101,6 +101,7 @@ pub struct BodiesConfig {
/// The maximum number of block bodies returned at once from the stream
pub downloader_stream_batch_size: usize,
/// Maximum amount of received bodies to buffer internally.
/// The response contains multiple bodies.
pub downloader_max_buffered_responses: usize,
/// The minimum number of requests to send concurrently.
pub downloader_min_concurrent_requests: usize,
@@ -113,7 +114,7 @@ impl Default for BodiesConfig {
Self {
downloader_request_limit: 200,
downloader_stream_batch_size: 10000,
downloader_max_buffered_responses: 30000,
downloader_max_buffered_responses: 1000,
downloader_min_concurrent_requests: 5,
downloader_max_concurrent_requests: 100,
}