From 6c54db3e1e2b6b6034bfb4ca2baaedcef4253552 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Mon, 29 Jul 2024 22:00:42 +0800 Subject: [PATCH] tweak comments --- bridge-history-api/internal/logic/l1_fetcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge-history-api/internal/logic/l1_fetcher.go b/bridge-history-api/internal/logic/l1_fetcher.go index d6566ee8d3..11826e0d33 100644 --- a/bridge-history-api/internal/logic/l1_fetcher.go +++ b/bridge-history-api/internal/logic/l1_fetcher.go @@ -339,7 +339,8 @@ func (f *L1FetcherLogic) updateMetrics(res L1FilterResult) { f.l1FetcherLogicFetchedTotal.WithLabelValues("L1_skip_message").Add(1) case btypes.MessageQueueEventTypeDropTransaction: f.l1FetcherLogicFetchedTotal.WithLabelValues("L1_drop_message").Add(1) - // this event could reset more than one skipped messages. + // one ResetDequeuedTransaction event could indicate reset multiple skipped messages, + // this metric only counts the number of events, not the number of skipped messages. case btypes.MessageQueueEventTypeResetDequeuedTransaction: f.l1FetcherLogicFetchedTotal.WithLabelValues("L1_reset_skipped_messages").Add(1) }