remove info logging
This commit is contained in:
parent
37e3d0be2b
commit
fe45813e4c
@ -1142,18 +1142,9 @@ impl Web3ProxyApp {
|
|||||||
) -> Web3ProxyResult<AuthorizationChecks> {
|
) -> Web3ProxyResult<AuthorizationChecks> {
|
||||||
// TODO: move onto a helper function
|
// TODO: move onto a helper function
|
||||||
|
|
||||||
let fresh = Arc::new(Mutex::new(false));
|
|
||||||
|
|
||||||
let fresh_clone = fresh.clone();
|
|
||||||
|
|
||||||
let x = self
|
let x = self
|
||||||
.rpc_secret_key_cache
|
.rpc_secret_key_cache
|
||||||
.try_get_with_by_ref(rpc_secret_key, async move {
|
.try_get_with_by_ref(rpc_secret_key, async move {
|
||||||
{
|
|
||||||
let mut f = fresh.lock_arc();
|
|
||||||
*f = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
let db_replica = self.db_replica()?;
|
let db_replica = self.db_replica()?;
|
||||||
|
|
||||||
// TODO: join the user table to this to return the User? we don't always need it
|
// TODO: join the user table to this to return the User? we don't always need it
|
||||||
@ -1303,12 +1294,6 @@ impl Web3ProxyApp {
|
|||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if *fresh_clone.lock() {
|
|
||||||
info!(?rpc_secret_key, "authorization_checks miss");
|
|
||||||
} else {
|
|
||||||
info!(?rpc_secret_key, "authorization_checks hit");
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(x)
|
Ok(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user