Skip to content

Commit

Permalink
changes lastCommitTime to initialize with value now - fixes issue of …
Browse files Browse the repository at this point in the history
…observer polling it on node vc boot (prior to sync it holds 0 value ) and accounting it as vc stuck
  • Loading branch information
gadcl committed Nov 11, 2020
1 parent 51e702c commit e6ee26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/blockstorage/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func newMetrics(m metric.Factory) *metrics {
inOrderBlockTime: m.NewGauge("BlockStorage.InOrderBlock.BlockTime.TimeNano"),
topBlockHeight: m.NewGauge("BlockStorage.TopBlock.BlockHeight"),
topBlockTime: m.NewGauge("BlockStorage.TopBlock.BlockTime.TimeNano"),
lastCommitTime: m.NewGauge("BlockStorage.LastCommit.TimeNano"),
lastCommitTime: m.NewGaugeWithValue("BlockStorage.LastCommit.TimeNano", time.Now().UnixNano()),
}
}

Expand Down

0 comments on commit e6ee26d

Please sign in to comment.