This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a linearizer on (appservice, stream) when handling ephemeral events. #11207
Add a linearizer on (appservice, stream) when handling ephemeral events. #11207
Changes from 1 commit
4726c83
c25bc99
7959d0e
1d9ea27
f8f3c4a
1f2b14c
9445883
bc991c2
451c31f
88d2d5c
2d924c5
e76e59c
36ecd70
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would just log at the debug level and return an empty list in this case. I'm not sure what we'd want to handle the exception (there's not much to do at this point).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in bc991c2 - I'm unsure if there are situations where it's desirable to set the new token when there's no events?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's always desireable to set the token, even if there are no events. As that means we've checked that there are no events to send up until that stream token.
If we don't set it, then when a new stream token comes in we end up checking a token range that overlaps what we've already checked in the previous call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now fixed in 88d2d5c + 2d924c5