diff --git a/web3_proxy/src/frontend/authorization.rs b/web3_proxy/src/frontend/authorization.rs index 597c45d4..64667144 100644 --- a/web3_proxy/src/frontend/authorization.rs +++ b/web3_proxy/src/frontend/authorization.rs @@ -1142,18 +1142,9 @@ impl Web3ProxyApp { ) -> Web3ProxyResult { // TODO: move onto a helper function - let fresh = Arc::new(Mutex::new(false)); - - let fresh_clone = fresh.clone(); - let x = self .rpc_secret_key_cache .try_get_with_by_ref(rpc_secret_key, async move { - { - let mut f = fresh.lock_arc(); - *f = true; - } - let db_replica = self.db_replica()?; // TODO: join the user table to this to return the User? we don't always need it @@ -1303,12 +1294,6 @@ impl Web3ProxyApp { }) .await?; - if *fresh_clone.lock() { - info!(?rpc_secret_key, "authorization_checks miss"); - } else { - info!(?rpc_secret_key, "authorization_checks hit"); - } - Ok(x) }