From 2ad435587a0d9cb42aadf55c1e3ec50ce717cc0d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2020 14:48:32 -0700 Subject: [PATCH] Increase the number of JSON RPC service threads (#9551) (#9561) automerge --- core/src/rpc_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/rpc_service.rs b/core/src/rpc_service.rs index 0411510f1b..5f07cf91a1 100644 --- a/core/src/rpc_service.rs +++ b/core/src/rpc_service.rs @@ -287,7 +287,7 @@ impl JsonRpcService { genesis_hash, }, ) - .threads(4) + .threads(num_cpus::get()) .cors(DomainsValidation::AllowOnly(vec![ AccessControlAllowOrigin::Any, ]))