Skip to content

Fix transaction not being rolled back on TransactionBuilder::start() Future dropped before completion #1127

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

Closed

Conversation

irkill
Copy link

@irkill irkill commented Apr 3, 2024

Fixes the same issue as described in the #834, but for a TransactionBuilder::start() Future.

}

Ok(Transaction::new(self))
Transaction::begin(self).await
Copy link
Owner

Choose a reason for hiding this comment

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

I think it'd be simpler to just have this call self.transaction_builder().start().await and have the cancellation logic in one place.

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