Skip to content

Commit

Permalink
Merge pull request kubernetes#110297 from kerthcet/cleanup/revise-unm…
Browse files Browse the repository at this point in the history
…atch-comments

Cleanup: modify unmatch comments with stopCh
  • Loading branch information
k8s-ci-robot committed May 31, 2022
2 parents aae07c6 + 186470a commit 135ac17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/framework/runtime/metrics_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ type metricsRecorder struct {
// how often the recorder runs to flush the metrics.
interval time.Duration

// stopCh is used to stop the goroutine which periodically flushes metrics. It's currently only
// used in tests.
// stopCh is used to stop the goroutine which periodically flushes metrics.
stopCh <-chan struct{}
// isStoppedCh indicates whether the goroutine is stopped. It's used in tests only to make sure
// the metric flushing goroutine is stopped so that tests can collect metrics for verification.
Expand Down

0 comments on commit 135ac17

Please sign in to comment.