remove thenReturn that fetches unused values

Signed-off-by: ChanHyeongLee <cksgud410@gmail.com>
This commit is contained in:
ChanHyeongLee 2025-05-12 19:00:05 +09:00
parent 33aeb6ee9c
commit 41b1dff8be
1 changed files with 1 additions and 1 deletions

View File

@ -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))