From 2fe82be3bcb326af04c4c862431237c576ed1152 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 23 Apr 2020 14:40:59 +0000 Subject: RPC to ourself do not pass through serialization + HTTPS --- src/server.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server.rs') diff --git a/src/server.rs b/src/server.rs index 7b6f2240..3ea29105 100644 --- a/src/server.rs +++ b/src/server.rs @@ -35,8 +35,8 @@ pub struct Config { pub bootstrap_peers: Vec, - #[serde(default = "default_max_concurrent_requests")] - pub max_concurrent_requests: usize, + #[serde(default = "default_max_concurrent_rpc_requests")] + pub max_concurrent_rpc_requests: usize, #[serde(default = "default_block_size")] pub block_size: usize, @@ -53,7 +53,7 @@ pub struct Config { pub rpc_tls: Option, } -fn default_max_concurrent_requests() -> usize { +fn default_max_concurrent_rpc_requests() -> usize { 12 } fn default_block_size() -> usize { @@ -262,7 +262,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { info!("Initializing background runner..."); let (send_cancel, watch_cancel) = watch::channel(false); - let background = BackgroundRunner::new(8, watch_cancel.clone()); + let background = BackgroundRunner::new(16, watch_cancel.clone()); let garage = Garage::new(config, id, db, background.clone(), &mut rpc_server).await; -- cgit v1.2.3