From 55ed52a71d5cea3aebf186497b769d78497b9c70 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 17 Apr 2020 12:37:33 -0700 Subject: [PATCH] Increase the number of JSON RPC service threads (#9551) 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 030a90baa3..e5ed21f8c8 100644 --- a/core/src/rpc_service.rs +++ b/core/src/rpc_service.rs @@ -289,7 +289,7 @@ impl JsonRpcService { genesis_hash, }, ) - .threads(4) + .threads(num_cpus::get()) .cors(DomainsValidation::AllowOnly(vec![ AccessControlAllowOrigin::Any, ]))