Merge pull request #110297 from kerthcet/cleanup/revise-unmatch-comments

Cleanup: modify unmatch comments with stopCh
This commit is contained in:
Kubernetes Prow Robot 2022-05-31 08:44:52 -07:00 committed by GitHub
commit 135ac17f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.