mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
chore(download): lower the buffer limit for bodies downloader (#1178)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user