aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server.rs b/src/server.rs
index 542c8675..7b6f2240 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -35,6 +35,9 @@ pub struct Config {
pub bootstrap_peers: Vec<SocketAddr>,
+ #[serde(default = "default_max_concurrent_requests")]
+ pub max_concurrent_requests: usize,
+
#[serde(default = "default_block_size")]
pub block_size: usize,
@@ -50,6 +53,9 @@ pub struct Config {
pub rpc_tls: Option<TlsConfig>,
}
+fn default_max_concurrent_requests() -> usize {
+ 12
+}
fn default_block_size() -> usize {
1048576
}