From f6d9ffb740927ae8ed1b1673ae597a9a05715acd Mon Sep 17 00:00:00 2001 From: Richard Romanowski <79664656+rromanowski-figure@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:56:06 -0400 Subject: [PATCH] lint --- .../provenance/api/frameworks/provenance/ProvenanceService.kt | 2 +- .../provenance/api/frameworks/web/external/cee/CeeHandler.kt | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/api/frameworks/provenance/ProvenanceService.kt b/service/src/main/kotlin/io/provenance/api/frameworks/provenance/ProvenanceService.kt index 23cd0a2..97fdb23 100644 --- a/service/src/main/kotlin/io/provenance/api/frameworks/provenance/ProvenanceService.kt +++ b/service/src/main/kotlin/io/provenance/api/frameworks/provenance/ProvenanceService.kt @@ -155,7 +155,7 @@ class ProvenanceService : Provenance { return runCatching { action(pbClient, account, cachedOffset.getAndIncrementOffset(account.sequence)) - }.getOrElse{ + }.getOrElse { cachedOffset.getAndDecrement(account.sequence) throw it } diff --git a/service/src/main/kotlin/io/provenance/api/frameworks/web/external/cee/CeeHandler.kt b/service/src/main/kotlin/io/provenance/api/frameworks/web/external/cee/CeeHandler.kt index 9baf231..5d38732 100644 --- a/service/src/main/kotlin/io/provenance/api/frameworks/web/external/cee/CeeHandler.kt +++ b/service/src/main/kotlin/io/provenance/api/frameworks/web/external/cee/CeeHandler.kt @@ -18,14 +18,11 @@ import io.provenance.api.domain.usecase.cee.submit.models.SubmitContractBatchExe import io.provenance.api.domain.usecase.cee.submit.models.SubmitContractExecutionResultRequestWrapper import io.provenance.api.frameworks.web.misc.foldToServerResponse import io.provenance.api.frameworks.web.misc.getEntity -import mu.KotlinLogging import org.springframework.stereotype.Component import org.springframework.web.reactive.function.server.ServerRequest import org.springframework.web.reactive.function.server.ServerResponse import org.springframework.web.reactive.function.server.awaitBody -private val log = KotlinLogging.logger("CeeHandler") - @Component class CeeHandler( private val executeContract: ExecuteContract,