[skip ci] Add desc comments for NewMetricsCacheManager (#9128)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9119/head
dragondriver 2021-10-03 10:34:18 +08:00 committed by GitHub
parent c30c5d759d
commit d13ae5f336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ type MetricsCacheManager struct {
retentionMtx sync.RWMutex // necessary? retentionMtx sync.RWMutex // necessary?
} }
// NewMetricsCacheManager returns a cache manager of metrics information.
func NewMetricsCacheManager() *MetricsCacheManager { func NewMetricsCacheManager() *MetricsCacheManager {
manager := &MetricsCacheManager{ manager := &MetricsCacheManager{
systemInfoMetrics: nil, systemInfoMetrics: nil,