Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-m committed Jan 24, 2024
1 parent 1d59dc4 commit 5ba704b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scheduler/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ func NewSchedulerMetrics(metricsRepo repository.PrometheusRepository) SchedulerM

func (sm *SchedulerMetrics) ContainerScheduled() {
if handler := sm.metricsRepo.GetCounterHandler(types.MetricsSchedulerContainerScheduled); handler != nil {
handler.Add(1)
handler.Inc()
}
}

func (sm *SchedulerMetrics) ContainerRequested() {
if handler := sm.metricsRepo.GetCounterHandler(types.MetricsSchedulerContainerRequested); handler != nil {
handler.Add(1)
handler.Inc()
}
}

0 comments on commit 5ba704b

Please sign in to comment.