libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit a2436996041807e3bb136c436053f007b6340cea
parent ac8a642657d8b346a5cf83d3864f6426b1733cc0
Author: Antoine A <>
Date:   Thu, 20 Jun 2024 17:51:14 +0200

bank: fix println

Diffstat:
Mcommon/src/main/kotlin/db/transaction.kt | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/common/src/main/kotlin/db/transaction.kt b/common/src/main/kotlin/db/transaction.kt @@ -36,17 +36,11 @@ suspend fun <R> retrySerializationError(lambda: suspend () -> R): R { try { return lambda() } catch (e: SQLException) { - println("${e.sqlState} ?? ${PSQLState.SERIALIZATION_FAILURE.state}") if (e.sqlState != PSQLState.SERIALIZATION_FAILURE.state) throw e } } - try { - return lambda() - } catch (e: SQLException) { - logger.warn("Serialization failure after $SERIALIZATION_RETRY retry") - throw e - } + return lambda() } /** Run a postgres [transaction] */