-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transaction: Add a default finalizer checking if transaction has ended
Add a dynamic check on transaction during its finalization, ensuring that end is called and their resources are released. It's a programmer error not to do that, so we should panic in such case. Testing of this code-path requires wrapping a bit panic() because we we can't recover from a panic happening in a goroutine.
- Loading branch information
Showing
2 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters