Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Aug 26, 2024
1 parent a171151 commit f1862c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,18 +535,14 @@ class BlockTxRetryRecord(id: EntityID<Int>) : 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()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import io.provenance.explorer.domain.entities.TxProcessingFailureRecord

Check failure on line 1 in service/src/test/kotlin/io/provenance/explorer/domain/entities/TxProcessingFailuresTableTest.kt

View workflow job for this annotation

GitHub Actions / ktlint

Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
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 {

Expand Down

0 comments on commit f1862c0

Please sign in to comment.