Skip to content

Commit

Permalink
fix metrics cleanUp (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor authored Feb 27, 2024
1 parent fe1dacc commit 4769da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequencer/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ func (i *intervalMetrics) cleanUp() {
i.estimatedTxsPerSecAcc -= i.estimatedTxsPerSec
i.estimatedTxsPerSecCount--
}
// Remove from l2Blocks
i.l2Blocks = i.l2Blocks[1:]
ct++
} else {
break
}
}

if ct > 0 {
// Remove from l2Blocks
i.l2Blocks = i.l2Blocks[ct:]
// Compute performance
i.computeEstimatedTxsPerSec()
}
Expand Down

0 comments on commit 4769da0

Please sign in to comment.