Skip to content

Commit

Permalink
comment out calc latency function
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Sep 18, 2024
1 parent a9dd789 commit 0415649
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!!) {
Expand All @@ -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 {
Expand Down

0 comments on commit 0415649

Please sign in to comment.