mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Avoid deprecated usingWhen method in Reactor 3.3
Closes gh-23562
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ final class TransactionalOperatorImpl implements TransactionalOperator {
|
||||
// Need re-wrapping of ReactiveTransaction until we get hold of the exception
|
||||
// through usingWhen.
|
||||
return status.flatMap(it -> Mono.usingWhen(Mono.just(it), ignore -> mono,
|
||||
this.transactionManager::commit, s -> Mono.empty())
|
||||
this.transactionManager::commit, (res, err) -> Mono.empty(), s -> Mono.empty())
|
||||
.onErrorResume(ex -> rollbackOnException(it, ex).then(Mono.error(ex))));
|
||||
})
|
||||
.subscriberContext(TransactionContextManager.getOrCreateContext())
|
||||
|
||||
Reference in New Issue
Block a user