From 0699413dce9eaf83dbd5777f674e5f3115578d40 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Mon, 11 Mar 2024 11:11:07 -0600 Subject: [PATCH] fix lint, remove logging --- .../main/kotlin/io/provenance/explorer/config/RestConfig.kt | 4 +--- .../main/kotlin/io/provenance/explorer/service/GovService.kt | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/config/RestConfig.kt b/service/src/main/kotlin/io/provenance/explorer/config/RestConfig.kt index dc7cfd97..3d107b08 100644 --- a/service/src/main/kotlin/io/provenance/explorer/config/RestConfig.kt +++ b/service/src/main/kotlin/io/provenance/explorer/config/RestConfig.kt @@ -149,7 +149,6 @@ import io.provenance.reward.v1.MsgClaimAllRewardsRequest import io.provenance.reward.v1.MsgClaimRewardsRequest import io.provenance.reward.v1.MsgCreateRewardProgramRequest import io.provenance.reward.v1.MsgEndRewardProgramRequest -import io.provenance.exchange.v1.MsgGovCreateMarketRequest import org.reflections.Reflections import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration @@ -160,7 +159,6 @@ import org.springframework.web.client.RestTemplate import org.springframework.web.servlet.config.annotation.CorsRegistry import org.springframework.web.servlet.config.annotation.WebMvcConfigurer - @Configuration class RestConfig { @@ -361,7 +359,7 @@ fun msgDescriptors(): List { MsgVote.getDescriptor(), MsgWithdrawProposal.getDescriptor(), MsgExec.getDescriptor(), - MsgLeaveGroup.getDescriptor(), + MsgLeaveGroup.getDescriptor() ) descriptors.addAll(findMsgDescriptorsInPackage("io.provenance.exchange.v1")) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/GovService.kt b/service/src/main/kotlin/io/provenance/explorer/service/GovService.kt index 1725081d..c36bac2f 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/GovService.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/GovService.kt @@ -419,7 +419,6 @@ class GovService( GovProposalRecord.getAllPaginated(page.toOffset(count), count) .let { list -> runBlocking { - logger().debug("getting proposal list") val filtered = list.filter { it.dataV1 == null } if (filtered.isNotEmpty()) { filtered.asFlow().collect { prop -> @@ -438,7 +437,6 @@ class GovService( } } }.map { - logger().info("mapping proposal record: $it") mapProposalRecord(it) } .let {