From 45543be2562179477ff55d86d65ba64c6059db61 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 12 Jun 2023 23:03:38 -0700 Subject: [PATCH] add more caches to /status --- web3_proxy/src/frontend/status.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/frontend/status.rs b/web3_proxy/src/frontend/status.rs index 7d553061..b0e7b1e5 100644 --- a/web3_proxy/src/frontend/status.rs +++ b/web3_proxy/src/frontend/status.rs @@ -138,14 +138,17 @@ async fn _status(app: Arc) -> (StatusCode, &'static str, Bytes) { // TODO: the hostname is probably not going to change. only get once at the start? let body = json!({ "balanced_rpcs": app.balanced_rpcs, + "bearer_token_semaphores": MokaCacheSerializer(&app.bearer_token_semaphores), "bundler_4337_rpcs": app.bundler_4337_rpcs, "chain_id": app.config.chain_id, "hostname": app.hostname, + "ip_semaphores": MokaCacheSerializer(&app.ip_semaphores), "jsonrpc_response_cache": MokaCacheSerializer(&app.jsonrpc_response_cache), + "payment_factory_address": app.config.deposit_factory_contract, "private_rpcs": app.private_rpcs, "rpc_secret_key_cache": MokaCacheSerializer(&app.rpc_secret_key_cache), "user_balance_cache": MokaCacheSerializer(&app.user_balance_cache), - "payment_factory_address": app.config.deposit_factory_contract, + "user_semaphores": MokaCacheSerializer(&app.user_semaphores), "version": APP_USER_AGENT, });