From f1862c05a3fea379c731c8ab0283d9fe8ca25d7c Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Mon, 26 Aug 2024 11:11:40 -0600 Subject: [PATCH] fix lints --- .../io/provenance/explorer/domain/entities/Blocks.kt | 8 ++------ .../domain/entities/TxProcessingFailuresTableTest.kt | 6 +++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt index f9c6d4d5..cafe9ca1 100644 --- a/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt +++ b/service/src/main/kotlin/io/provenance/explorer/domain/entities/Blocks.kt @@ -535,18 +535,14 @@ class BlockTxRetryRecord(id: EntityID) : IntEntity(id) { it[this.height] = height it[this.retried] = true it[this.success] = false - it[this.errorBlock] = - "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + - e.stackTraceToString() + it[this.errorBlock] = "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + e.stackTraceToString() } } fun insertNonBlockingRetry(height: Int, e: Exception) = transaction { BlockTxRetryTable.insertIgnore { it[this.height] = height - it[this.errorBlock] = - "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + - e.stackTraceToString() + it[this.errorBlock] = "NON BLOCKING ERROR: Logged to know what happened, but didnt stop processing.\n " + e.stackTraceToString() } } diff --git a/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt b/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt index 2a1dcd90..1c798f7a 100644 --- a/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt +++ b/service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt @@ -1,11 +1,11 @@ import io.provenance.explorer.domain.entities.TxProcessingFailureRecord import io.provenance.explorer.domain.entities.TxProcessingFailuresTable -import org.jetbrains.exposed.sql.and -import org.jetbrains.exposed.sql.Database -import org.jetbrains.exposed.sql.transactions.transaction import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertNotNull import org.junit.jupiter.api.Test +import org.jetbrains.exposed.sql.and +import org.jetbrains.exposed.sql.Database +import org.jetbrains.exposed.sql.transactions.transaction class TxProcessingFailureRecordTest {