Skip to content

Commit

Permalink
Remove redundant sorting by persistence ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrdom committed Oct 14, 2024
1 parent a9edb50 commit 192e903
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ final private[pekko] class EventsByTagStage(
if (isAvailable(out)) {
val maybeNextEvent = storage
.tryReadByTag(tag)
.sortBy(pr => (pr.timestamp, pr.persistenceId, pr.sequenceNr))
.sortBy(pr => (pr.timestamp, pr.sequenceNr))
.find { pr =>
state.forall(_.isAfter(pr.timestamp, pr.sequenceNr))
}
Expand Down

0 comments on commit 192e903

Please sign in to comment.