Skip to content

Commit

Permalink
increase metric properly when blocks are requeued (#12326)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee authored Oct 7, 2024
1 parent d062c1c commit f33a0a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op-batcher/batcher/channel_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ func (s *channelManager) Requeue(newCfg ChannelConfig) {

// We put the blocks back at the front of the queue:
s.blocks.Prepend(blocksToRequeue...)

for _, b := range blocksToRequeue {
s.metr.RecordL2BlockInPendingQueue(b)
}

// Channels which where already being submitted are put back
s.channelQueue = newChannelQueue
s.currentChannel = nil
Expand Down

0 comments on commit f33a0a9

Please sign in to comment.