Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set last_event_id in Dispatcher #133

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

inxilpro
Copy link
Contributor

Right now we only set State::$last_event_id if an apply hook is triggered. This means that events that don't have an apply method can trigger concurrency exceptions, even thought it's not a concurrency issue. This change should resolve that byt setting last_event_id when the event is dispatched regardless of whether there are any hooks registered for that phase.

@DanielCoulbourne DanielCoulbourne merged commit 8072fbc into main May 1, 2024
42 checks passed
@DanielCoulbourne DanielCoulbourne deleted the always-set-last-event-d branch May 1, 2024 19:43
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.

2 participants