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,