From ca3f0d1e24ac3bad719cb6a1f92a71f0561ab2bf Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Wed, 9 Oct 2024 19:17:39 +0900 Subject: [PATCH] Bugfix in actor inbox count gauge (#5483) --- quickwit/quickwit-actors/src/mailbox.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickwit/quickwit-actors/src/mailbox.rs b/quickwit/quickwit-actors/src/mailbox.rs index 711136401a5..5118df1dbd0 100644 --- a/quickwit/quickwit-actors/src/mailbox.rs +++ b/quickwit/quickwit-actors/src/mailbox.rs @@ -400,7 +400,9 @@ fn get_actor_inboxes_count_gauge_guard() -> GaugeGuard<'static> { &[], ) }); - GaugeGuard::from_gauge(gauge) + let mut gauge_guard = GaugeGuard::from_gauge(gauge); + gauge_guard.add(1); + gauge_guard } pub(crate) fn create_mailbox(