From 0415649e3c3c39276af8239adff8b163f0f51de3 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Wed, 18 Sep 2024 08:46:33 -0600 Subject: [PATCH] comment out calc latency function --- .../explorer/service/async/ScheduledTaskService.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/async/ScheduledTaskService.kt b/service/src/main/kotlin/io/provenance/explorer/service/async/ScheduledTaskService.kt index a4eefacd..ea308899 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/async/ScheduledTaskService.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/async/ScheduledTaskService.kt @@ -143,6 +143,7 @@ class ScheduledTaskService( count++ blockService.updateBlockMinHeightIndex(indexHeight + 1) } + logger.info("Finished updateLatestBlockHeightJob historical added: $count") blockService.updateBlockMaxHeightIndex(startHeight) } else { while (indexHeight > index.first!!) { @@ -152,15 +153,16 @@ class ScheduledTaskService( count++ } } + logger.info("Finished updateLatestBlockHeightJob added: $count") blockService.updateBlockMaxHeightIndex(startHeight) } BlockTxCountsCacheRecord.updateTxCounts() - BlockProposerRecord.calcLatency() + // BlockProposerRecord.calcLatency() if (!cacheService.getCacheValue(CacheKeys.SPOTLIGHT_PROCESSING.key)!!.cacheValue.toBoolean()) { cacheService.updateCacheValue(CacheKeys.SPOTLIGHT_PROCESSING.key, true.toString()) } - logger.info("Finished updateLatestBlockHeightJob added: $count") + logger.info("Finished updateLatestBlockHeightJob") } fun getBlockIndex() = blockService.getBlockIndexFromCache()?.let {