fix config item name

This commit is contained in:
Bryan Stitt 2022-11-29 22:27:02 +00:00
parent 04d95f7234
commit 4d18d50307
2 changed files with 3 additions and 3 deletions

View File

@ -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}}\""
);
}

View File

@ -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}}\"")
}
}
}