Skip to content

Commit

Permalink
fixing review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaele-oplabs committed Oct 8, 2024
1 parent ef1ecfd commit 0eb0e4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions op-monitorism/faultproof_withdrawals/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,8 @@ func (m *Metrics) UpdateMetricsFromState(state *State) {
}

// Clear the previous values
// m.SuspiciousEventsOnChallengerWinsGamesGaugeVec.Reset()
m.SuspiciousEventsOnChallengerWinsGamesGaugeVec.Reset()
// Update metrics for invalid proposal withdrawals events

for _, key := range state.suspiciousEventsOnChallengerWinsGames.Keys() {
enrichedEvent, ok := state.suspiciousEventsOnChallengerWinsGames.Get(key)
if ok {
Expand All @@ -431,7 +430,7 @@ func (m *Metrics) UpdateMetricsFromState(state *State) {
proofSubmitter := event.Event.ProofSubmitter.String()
status := event.DisputeGame.DisputeGameData.Status.String()

m.PotentialAttackOnInProgressGamesGaugeVec.WithLabelValues(
m.SuspiciousEventsOnChallengerWinsGamesGaugeVec.WithLabelValues(
withdrawalHash,
proofSubmitter,
status,
Expand Down

0 comments on commit 0eb0e4f

Please sign in to comment.