From d4da9609eee2230d42b97b8ef4c3f0b23ecbede6 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 20 Nov 2020 10:49:14 +1000 Subject: [PATCH] Update the max_concurrent_block_requests docs In #1298, we decreased `max_concurrent_block_requests`, but forgot to update the docs. --- zebrad/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zebrad/src/config.rs b/zebrad/src/config.rs index dde94a13..51ac5356 100644 --- a/zebrad/src/config.rs +++ b/zebrad/src/config.rs @@ -132,10 +132,10 @@ impl Default for MetricsSection { pub struct SyncSection { /// The maximum number of concurrent block requests during sync. /// - /// This is set to a high value by default, so that the concurrency limit is - /// based only on the number of available peers. However, on a slow network, - /// making too many concurrent block requests can overwhelm the connection. - /// Lowering this value may help on slow or unreliable networks. + /// This is set to a low value by default, to avoid task and + /// network contention. Increasing this value may improve + /// performance on machines with many cores and a fast network + /// connection. pub max_concurrent_block_requests: usize, /// Controls how far ahead of the chain tip the syncer tries to