mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #110297 from kerthcet/cleanup/revise-unmatch-comments
Cleanup: modify unmatch comments with stopCh
This commit is contained in:
commit
135ac17f20
@ -41,8 +41,7 @@ type metricsRecorder struct {
|
|||||||
// how often the recorder runs to flush the metrics.
|
// how often the recorder runs to flush the metrics.
|
||||||
interval time.Duration
|
interval time.Duration
|
||||||
|
|
||||||
// stopCh is used to stop the goroutine which periodically flushes metrics. It's currently only
|
// stopCh is used to stop the goroutine which periodically flushes metrics.
|
||||||
// used in tests.
|
|
||||||
stopCh <-chan struct{}
|
stopCh <-chan struct{}
|
||||||
// isStoppedCh indicates whether the goroutine is stopped. It's used in tests only to make sure
|
// 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.
|
// the metric flushing goroutine is stopped so that tests can collect metrics for verification.
|
||||||
|
Loading…
Reference in New Issue
Block a user