Skip to content

Commit

Permalink
Merge pull request #59 from ikenchina/dev/metric2
Browse files Browse the repository at this point in the history
fix bug : reset gauge metric if syncer is a follower
  • Loading branch information
ikenchina authored Sep 13, 2024
2 parents e5ac9bb + 397da9c commit 7ad2e2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ func (s *syncer) runFollower() error {
s.guard.RUnlock()

s.updateStateMetric()
syncDelayGauge.Set(0, s.cfg.Input.Address())

s.logger.Infof("RunFollower : leader(%s)", leader.Address)

Expand Down

0 comments on commit 7ad2e2e

Please sign in to comment.