From 0c058614cef0f468e5afe9e387a424826c1dea6e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 24 Jan 2023 23:21:50 -0800 Subject: [PATCH] fix not using the workers config option --- web3_proxy/src/bin/web3_proxy_cli/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web3_proxy/src/bin/web3_proxy_cli/main.rs b/web3_proxy/src/bin/web3_proxy_cli/main.rs index da95dc13..d46e9c1d 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/main.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/main.rs @@ -289,6 +289,10 @@ fn main() -> anyhow::Result<()> { rt_builder.enable_all(); + if cli_config.workers > 0 { + rt_builder.worker_threads(cli_config.workers); + } + if let Some(top_config) = top_config.as_ref() { let chain_id = top_config.app.chain_id;