Skip to content

Commit

Permalink
Put naming back
Browse files Browse the repository at this point in the history
Signed-off-by: JamesMurkin <[email protected]>
  • Loading branch information
JamesMurkin committed Jan 29, 2025
1 parent 4cb1076 commit 3f3f77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scheduler/metrics/cycle_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ func (m *cycleMetrics) enableLeaderMetrics() {
func (m *cycleMetrics) disableLeaderMetrics() {
m.cycleMetricAccessLock.Lock()
defer m.cycleMetricAccessLock.Unlock()
m.resetAllMetrics()
m.resetLeaderMetrics()
m.leaderMetricsEnabled = false
}

func (m *cycleMetrics) resetAllMetrics() {
func (m *cycleMetrics) resetLeaderMetrics() {
for _, metric := range m.allResettableMetrics {
metric.Reset()
}
Expand Down

0 comments on commit 3f3f77a

Please sign in to comment.