Skip to content

fix: transactions resulting in error when using different threads #3

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

Merged
merged 7 commits into from
Dec 9, 2024

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Dec 3, 2024

Description

This fixes the issue where the transaction never completes. The issue is the result of SKIE changing our functionality to run on a different thread than the thread which initiated the transaction which results in the transaction never completing. It also removes the PowerSyncTransactionsProtocol as this is not used because the transaction type comes kotlin.

Testing

I've included KotlinPowerSyncDatabaseImplTests which test database transactions.

@DominicGBauer DominicGBauer marked this pull request as ready for review December 4, 2024 17:56
Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@DominicGBauer DominicGBauer merged commit a545847 into main Dec 9, 2024
1 check passed
@DominicGBauer DominicGBauer deleted the fix/transaction-not-working branch December 9, 2024 06:25
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