remove thenReturn that fetches unused values
Signed-off-by: ChanHyeongLee <cksgud410@gmail.com>
This commit is contained in:
parent
33aeb6ee9c
commit
41b1dff8be
|
@ -219,7 +219,7 @@ public class R2dbcTransactionManager extends AbstractReactiveTransactionManager
|
|||
if (txObject.isNewConnectionHolder()) {
|
||||
synchronizationManager.bindResource(obtainConnectionFactory(), txObject.getConnectionHolder());
|
||||
}
|
||||
}).thenReturn(con).onErrorResume(ex -> {
|
||||
}).onErrorResume(ex -> {
|
||||
if (txObject.isNewConnectionHolder()) {
|
||||
return ConnectionFactoryUtils.releaseConnection(con, obtainConnectionFactory())
|
||||
.doOnTerminate(() -> txObject.setConnectionHolder(null, false))
|
||||
|
|
Loading…
Reference in New Issue