From 4d18d50307d9f7ff818ffb21ae83301e88ada5d0 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 29 Nov 2022 22:27:02 +0000 Subject: [PATCH] fix config item name --- web3_proxy/src/app/mod.rs | 2 +- web3_proxy/src/bin/web3_proxy_cli/check_config.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index ab2c2dee..4fc49b7f 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -254,7 +254,7 @@ impl Web3ProxyApp { if let Some(redirect) = &top_config.app.redirect_rpc_key_url { assert!( redirect.contains("{{rpc_key_id}}"), - "redirect_user_url user url must contain \"{{rpc_key_id}}\"" + "redirect_rpc_key_url user url must contain \"{{rpc_key_id}}\"" ); } diff --git a/web3_proxy/src/bin/web3_proxy_cli/check_config.rs b/web3_proxy/src/bin/web3_proxy_cli/check_config.rs index 189d1cb3..90ddf178 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/check_config.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/check_config.rs @@ -70,12 +70,12 @@ impl CheckConfigSubCommand { // TODO: also check that it contains rpc_key_id! match top_config.app.redirect_rpc_key_url { None => { - warn!("app.redirect_user_url is None. Registered users will get an error page instead of a redirect") + warn!("app.redirect_rpc_key_url is None. Registered users will get an error page instead of a redirect") } Some(x) => { if !x.contains("{{rpc_key_id}}") { num_errors += 1; - error!("redirect_user_url user url must contain \"{{rpc_key_id}}\"") + error!("redirect_rpc_key_url user url must contain \"{{rpc_key_id}}\"") } } }