From 14718fdb0635f67663670f64999acdebb3793482 Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 22 May 2023 12:12:19 +0200 Subject: Conversion service. Removing error accounting in the database, since only successful requests are supposed to be accounted. Failed request would either stop the service (when the problem is on the client), or be retried (when the server responded 5xx). --- .../tech/libeufin/sandbox/ConversionService.kt | 51 ++++++++++++++-------- .../src/main/kotlin/tech/libeufin/sandbox/DB.kt | 14 ++---- 2 files changed, 37 insertions(+), 28 deletions(-) (limited to 'sandbox/src/main/kotlin/tech/libeufin') diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt index 31ad5b88..46a9edd5 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt @@ -1,15 +1,12 @@ package tech.libeufin.sandbox import CamtBankAccountEntry -import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper -import com.fasterxml.jackson.module.kotlin.jsonMapper import io.ktor.client.* import io.ktor.client.plugins.* import io.ktor.client.request.* import io.ktor.client.statement.* import io.ktor.http.* -import io.ktor.utils.io.jvm.javaio.* import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking import org.jetbrains.exposed.sql.and @@ -230,7 +227,9 @@ private fun getUnsubmittedTransactions(bankAccountLabel: String): List) : LongEntity(id) { companion object : LongEntityClass(CashoutSubmissionsTable) var localTransaction by CashoutSubmissionsTable.localTransaction - var isSubmitted by CashoutSubmissionsTable.isSubmitted - var hasErrors by CashoutSubmissionsTable.hasErrors var maybeNexusResposnse by CashoutSubmissionsTable.maybeNexusResponse var submissionTime by CashoutSubmissionsTable.submissionTime } -- cgit v1.2.3