[skip ci] Add desc comments for MetricsCacheManager (#9065)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9067/head
dragondriver 2021-10-02 12:06:05 +08:00 committed by GitHub
parent 12164248eb
commit 2e47e38b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
const DefaultMetricsRetention = time.Second * 5
// TODO(dragondriver): we can use a map to manage the metrics if there are too many kind metrics
// MetricsCacheManager manage the cache of metrics information.
type MetricsCacheManager struct {
systemInfoMetrics *milvuspb.GetMetricsResponse
systemInfoMetricsInvalid bool