Skip to content

Commit 12dc862

Browse files
committed
chore: fix comment
Signed-off-by: dockercui <dockercui@aliyun.com>
1 parent eb8314f commit 12dc862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/orchestrator/committer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (c *Committer) getSequentialBlockDataToCommit() (*[]common.BlockData, error
144144
if (*blocksData)[i].Block.Number.Cmp(expectedBlockNumber) != 0 {
145145
// Note: Gap detected, stop here
146146
log.Warn().Msgf("Gap detected at block %s, committing until %s", expectedBlockNumber.String(), (*blocksData)[i-1].Block.Number.String())
147-
// increment the a gap counter in prometheus
147+
// increment the gap counter in prometheus
148148
metrics.GapCounter.Inc()
149149
// record the first missed block number in prometheus
150150
metrics.MissedBlockNumbers.Set(float64((*blocksData)[0].Block.Number.Int64()))
@@ -190,7 +190,7 @@ func (c *Committer) commit(blockData *[]common.BlockData) error {
190190
}
191191

192192
func (c *Committer) handleGap(expectedStartBlockNumber *big.Int, actualFirstBlock common.Block) error {
193-
// increment the a gap counter in prometheus
193+
// increment the gap counter in prometheus
194194
metrics.GapCounter.Inc()
195195
// record the first missed block number in prometheus
196196
metrics.MissedBlockNumbers.Set(float64(expectedStartBlockNumber.Int64()))

0 commit comments

Comments
 (0)