From b89bd691f61f1a38948b0ce7afc1d884f8ff56ea Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 7 Feb 2025 01:12:33 +0100 Subject: [PATCH] not mergeable: don't do tokio::time::timeout() for flush seconds counter --- pageserver/src/metrics.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pageserver/src/metrics.rs b/pageserver/src/metrics.rs index 96ee157856..cf7b9d59b0 100644 --- a/pageserver/src/metrics.rs +++ b/pageserver/src/metrics.rs @@ -1337,14 +1337,7 @@ impl SmgrOpFlushInProgress { }, ); - loop { - match tokio::time::timeout(Duration::from_secs(10), &mut fut).await { - Ok(v) => return v, - Err(_timeout) => { - (*observe_guard)(); - } - } - } + fut.await } }