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 } }