From 742b367e15723cecfe59902e70592cd7df1c5e18 Mon Sep 17 00:00:00 2001 From: tamirms Date: Wed, 6 Mar 2024 17:09:52 +0000 Subject: [PATCH] Fix ingestion loader duration metric (#5234) --- services/horizon/internal/ingest/fsm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/horizon/internal/ingest/fsm.go b/services/horizon/internal/ingest/fsm.go index 9c66f30f43..3ce02864c6 100644 --- a/services/horizon/internal/ingest/fsm.go +++ b/services/horizon/internal/ingest/fsm.go @@ -524,7 +524,7 @@ func (r resumeState) run(s *system) (transition, error) { tradeStatsMap := stats.tradeStats.Map() r.addLedgerStatsMetricFromMap(s, "trades", tradeStatsMap) r.addProcessorDurationsMetricFromMap(s, stats.transactionDurations) - r.addLoaderDurationsMetricFromMap(s, stats.transactionDurations) + r.addLoaderDurationsMetricFromMap(s, stats.loaderDurations) r.addLoaderStatsMetric(s, stats.loaderStats) // since a single system instance is shared throughout all states,