From d13ae5f336d3efe3d3470cacedb74c38f48ad5db Mon Sep 17 00:00:00 2001 From: dragondriver Date: Sun, 3 Oct 2021 10:34:18 +0800 Subject: [PATCH] [skip ci] Add desc comments for NewMetricsCacheManager (#9128) Signed-off-by: dragondriver --- internal/util/metricsinfo/cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/metricsinfo/cache.go b/internal/util/metricsinfo/cache.go index b34c4e38b6..f11407d7b7 100644 --- a/internal/util/metricsinfo/cache.go +++ b/internal/util/metricsinfo/cache.go @@ -33,6 +33,7 @@ type MetricsCacheManager struct { retentionMtx sync.RWMutex // necessary? } +// NewMetricsCacheManager returns a cache manager of metrics information. func NewMetricsCacheManager() *MetricsCacheManager { manager := &MetricsCacheManager{ systemInfoMetrics: nil,