-
Notifications
You must be signed in to change notification settings - Fork 268
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
Don't process the same transaction twice #560
Don't process the same transaction twice #560
Conversation
One thing to consider is that |
Is it? Where? In this PR? AFAIR it can't live in the app-service crate unless we're willing to expose internal That being said, I'm not super familiar with app-services to say if that's the best approach. |
Sorry I badly worded it. It was from the chat earlier and actually should say that it may be considered to do. Since then I came to the same conclusion though. Apart from the store thingy I added it cant be moved to the appservice crate. |
c20d151
to
73c6250
Compare
38aafa8
to
90af3fa
Compare
Codecov Report
@@ Coverage Diff @@
## main #560 +/- ##
==========================================
+ Coverage 77.76% 78.03% +0.26%
==========================================
Files 92 92
Lines 13675 13885 +210
==========================================
+ Hits 10635 10835 +200
- Misses 3040 3050 +10
Continue to review full report at Codecov.
|
Test fails seem unrelated? Binding test was a stack overflow on setup and sso-login tests were a Connection reset error while running them |
Re-running failed jobs… |
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.
LGTM, just a small nit.
… the txn_id in the store
This implements the transaction code handling as described in https://spec.matrix.org/v1.2/application-service-api/#pushing-events
TODO
Note
This does not fix the UB we have with the sync_token on the next stepI think this was fixed meanwhile?