Skip to content

Sort session events by auto-incrementing id#1202

Merged
arminsabouri merged 1 commit intopayjoin:masterfrom
arminsabouri:sort-events-by-id
Nov 24, 2025
Merged

Sort session events by auto-incrementing id#1202
arminsabouri merged 1 commit intopayjoin:masterfrom
arminsabouri:sort-events-by-id

Conversation

@arminsabouri
Copy link
Collaborator

Events may share the same created_at timestamp if they were created in the same second. An out of sync system time could also lead to inconsistent sorting -- which would eventually cause a panic when replaying the session.

cherry picked from #1158
Closes: #1201

Pull Request Checklist

Please confirm the following before requesting review:

Events may share the same `created_at` timestamp if they were created in
the same second. An out of sync system time could also lead to
inconsistent sorting -- which would eventually cause a panic when
replaying the session.

Co-authored-by: Mshehu5 <musheu@gmail.com>
@coveralls
Copy link
Collaborator

coveralls commented Nov 24, 2025

Pull Request Test Coverage Report for Build 19643947073

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.539%

Totals Coverage Status
Change from base Build 19641697171: 0.0%
Covered Lines: 8988
Relevant Lines: 10759

💛 - Coveralls

@arminsabouri arminsabouri self-assigned this Nov 24, 2025
Copy link
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack on 78214b6 Nice find on this one @Mshehu5

@arminsabouri arminsabouri merged commit baa63f6 into payjoin:master Nov 24, 2025
10 checks passed
@arminsabouri arminsabouri deleted the sort-events-by-id branch November 24, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loading events should use auto-incrementing id instead of created_at

3 participants