From 4597967def2f1daa71a277ec6731db4739ead640 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 28 May 2023 09:39:24 -0700 Subject: [PATCH] remove cache on backups needed, too --- web3_proxy/src/frontend/status.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/web3_proxy/src/frontend/status.rs b/web3_proxy/src/frontend/status.rs index b7d69fee..b75d7528 100644 --- a/web3_proxy/src/frontend/status.rs +++ b/web3_proxy/src/frontend/status.rs @@ -68,12 +68,15 @@ pub async fn backups_needed( Extension(app): Extension>, Extension(cache): Extension>, ) -> impl IntoResponse { - let (code, content_type, body) = cache - .get_or_insert_async::(&ResponseCacheKey::BackupsNeeded, async move { - Ok(_backups_needed(app).await) - }) - .await - .expect("this cache get is infallible"); + // let (code, content_type, body) = cache + // .get_or_insert_async::(&ResponseCacheKey::BackupsNeeded, async move { + // Ok(_backups_needed(app).await) + // }) + // .await + // .expect("this cache get is infallible"); + + // TODO: cache this once new TTLs work + let (code, content_type, body) = _backups_needed(app).await; Response::builder() .status(code)