Skip to content

Commit

Permalink
fix upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Oct 14, 2023
1 parent 44cc76c commit 05fae6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func GetUpgradeMetrics(wg *sync.WaitGroup, sublogger *zerolog.Logger, metrics *U
}

upgradeHeight := upgradeRes.Plan.Height
remainingHeight := upgradeHeight - cs.LatestBlockHeight()
remainingHeight := upgradeHeight - cs.SyncInfo().LatestBlockHeight

if remainingHeight <= 0 {
metrics.upgradePlanGauge.With(prometheus.Labels{
Expand Down

0 comments on commit 05fae6d

Please sign in to comment.