Skip to content

Commit

Permalink
fix for lorre not quiting (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkosecki committed Jan 26, 2021
1 parent a3c54be commit dcb192b
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,12 @@ class TezosIndexer private (

override def start(): Unit = {
checkTezosConnection()
Await.result(
accountsResetHandler
.unprocessedResetRequestLevels(lorreConf.chainEvents)
.transform(
accountResets => mainLoop(0, accountResets),
error => {
logger.error("Could not get the unprocessed events block levels for this chain network", error)
throw error
}
),
Duration.Inf
)
val accountResetsToHandle =
Await.result(
accountsResetHandler.unprocessedResetRequestLevels(lorreConf.chainEvents),
atMost = 5.seconds
)
mainLoop(0, accountResetsToHandle)
}

override def stop(): Future[ShutdownComplete] = terminationSequence()
Expand Down

0 comments on commit dcb192b

Please sign in to comment.