core: allow setting max ws rpc connections (#2632)

* core: allow setting max ws rpc connections

* style: break long lines

* core: fix service tests
This commit is contained in:
André Silva
2019-05-23 10:50:36 +01:00
committed by Gavin Wood
parent 12f052ce9d
commit 563a67b8e4
7 changed files with 42 additions and 7 deletions
+1
View File
@@ -487,6 +487,7 @@ where
config.rpc_ws = Some(
parse_address(&format!("{}:{}", ws_interface, 9944), cli.ws_port)?
);
config.rpc_ws_max_connections = cli.ws_max_connections;
config.rpc_cors = cli.rpc_cors.unwrap_or_else(|| if is_dev {
log::warn!("Running in --dev mode, RPC CORS has been disabled.");
None