Skip to content

Commit

Permalink
fix: Billing and Cockroach > transactionUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Jan 4, 2023
1 parent d9a4703 commit 36f74e9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.springframework.transaction.support.TransactionTemplate
fun <T> executeInNewTransaction(transactionManager: PlatformTransactionManager, fn: () -> T): T {
val tt = TransactionTemplate(transactionManager)
tt.propagationBehavior = TransactionDefinition.PROPAGATION_REQUIRES_NEW
tt.isolationLevel = TransactionDefinition.ISOLATION_SERIALIZABLE

return tt.execute {
fn()
Expand Down

0 comments on commit 36f74e9

Please sign in to comment.