Skip to content

Commit 393eba9

Browse files
authored
Merge pull request #479 from shutter-network/fix-metric-topic
Fix metric label value
2 parents 71c06dd + 335c83e commit 393eba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rolling-shutter/keyperimpl/gnosis/sequencersyncer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package gnosis
22

33
import (
44
"context"
5+
"fmt"
56
"math"
67
"math/big"
78

@@ -179,7 +180,7 @@ func (s *SequencerSyncer) insertTransactionSubmittedEvents(
179180
if err != nil {
180181
return errors.Wrap(err, "failed to insert transaction submitted event into db")
181182
}
182-
metricsLatestTxSubmittedEventIndex.WithLabelValues(string(event.Eon)).Set(float64(nextEventIndex))
183+
metricsLatestTxSubmittedEventIndex.WithLabelValues(fmt.Sprint(event.Eon)).Set(float64(nextEventIndex))
183184
nextEventIndices[event.Eon]++
184185
log.Debug().
185186
Int64("index", nextEventIndex).

0 commit comments

Comments
 (0)