From 186470abd44ae490c540fc2da509e0570bcf5c21 Mon Sep 17 00:00:00 2001 From: kerthcet Date: Tue, 31 May 2022 11:28:02 +0800 Subject: [PATCH] Cleanup: modify unmatch comments with stopCh Signed-off-by: kerthcet --- pkg/scheduler/framework/runtime/metrics_recorder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/scheduler/framework/runtime/metrics_recorder.go b/pkg/scheduler/framework/runtime/metrics_recorder.go index 1204f2e9ac3..23b25fa3b0a 100644 --- a/pkg/scheduler/framework/runtime/metrics_recorder.go +++ b/pkg/scheduler/framework/runtime/metrics_recorder.go @@ -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.