Skip to content

Commit

Permalink
Don't prune the last delayed message
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Sep 13, 2024
1 parent ff4802e commit e64daf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arbnode/message_pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func (m *MessagePruner) prune(ctx context.Context, count arbutil.MessageIndex, g
}
msgCount := endBatchMetadata.MessageCount
delayedCount := endBatchMetadata.DelayedMessageCount
if delayedCount > 0 {
// keep an extra delayed message for the inbox reader to use
delayedCount--
}

return m.deleteOldMessagesFromDB(ctx, msgCount, delayedCount)
}
Expand Down

0 comments on commit e64daf6

Please sign in to comment.