diff --git a/web3_proxy/src/frontend/status.rs b/web3_proxy/src/frontend/status.rs index 632f2839..b7d69fee 100644 --- a/web3_proxy/src/frontend/status.rs +++ b/web3_proxy/src/frontend/status.rs @@ -31,12 +31,15 @@ pub async fn health( Extension(app): Extension>, Extension(cache): Extension>, ) -> impl IntoResponse { - let (code, content_type, body) = cache - .get_or_insert_async::(&ResponseCacheKey::Health, async move { - Ok(_health(app).await) - }) - .await - .expect("this cache get is infallible"); + // let (code, content_type, body) = cache + // .get_or_insert_async::(&ResponseCacheKey::Health, async move { + // Ok(_health(app).await) + // }) + // .await + // .expect("this cache get is infallible"); + + // TODO: cache this once new TTLs work + let (code, content_type, body) = _health(app).await; Response::builder() .status(code) @@ -115,12 +118,15 @@ pub async fn status( Extension(app): Extension>, Extension(cache): Extension>, ) -> impl IntoResponse { - let (code, content_type, body) = cache - .get_or_insert_async::(&ResponseCacheKey::Status, async move { - Ok(_status(app).await) - }) - .await - .expect("this cache get is infallible"); + // let (code, content_type, body) = cache + // .get_or_insert_async::(&ResponseCacheKey::Status, async move { + // Ok(_status(app).await) + // }) + // .await + // .expect("this cache get is infallible"); + + // TODO: cache this once new TTLs work + let (code, content_type, body) = _status(app).await; Response::builder() .status(code)