From fb56729ab1f66705d403662e946ad3192c118d43 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 28 Dec 2022 23:16:35 -0800 Subject: [PATCH] fix key --- web3_proxy/src/frontend/authorization.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/frontend/authorization.rs b/web3_proxy/src/frontend/authorization.rs index 335ba3f4..7d651955 100644 --- a/web3_proxy/src/frontend/authorization.rs +++ b/web3_proxy/src/frontend/authorization.rs @@ -421,7 +421,7 @@ pub async fn key_is_authorized( let hashed_user_id = Bytes::from(keccak256(salted_user_id.as_bytes())); - let recent_user_id_key = format!("recent_users:registered:{}", app.config.chain_id); + let recent_user_id_key = format!("recent_users:id:{}", app.config.chain_id); redis_conn .zadd(recent_user_id_key, hashed_user_id.to_string(), now) @@ -431,7 +431,7 @@ pub async fn key_is_authorized( Ok::<_, anyhow::Error>(()) } .map_err(|err| { - warn!("background update of recent_users:ip failed: {}", err); + warn!("background update of recent_users:id failed: {}", err); err });