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

Move emit events to profile and delay sending until after commit #2760

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

ianco
Copy link
Contributor

@ianco ianco commented Feb 5, 2024

See issue #2000

This update doesn't break anything ... I haven't been able to duplicate the issue (by strategically inserting sleep() statements) so I can't 100% confirm that this fixes the issue, but I think it "should" ...

Copy link

sonarqubecloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ianco ianco requested a review from jamshale February 7, 2024 15:45
"""

# TODO check transaction, either queue or emit event
if force_emit or (not self.is_transaction):
Copy link
Contributor

@jamshale jamshale Feb 7, 2024

Choose a reason for hiding this comment

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

Only problem I could see is events getting stuck in an is_transaction state. I'm not aware if that's possible or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should get cleared when the transaction is either committed or rolled back. (At least that's my expectation, I haven't traced every single path of code ...)

@ianco ianco merged commit a705c3c into openwallet-foundation:main Feb 7, 2024
8 checks passed
Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

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

Missed my opportunity to comment but FWIW I think these look good!

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.

3 participants