From 2e47e38b9dda3d720b24e26bcc5f16026b5b780d Mon Sep 17 00:00:00 2001 From: dragondriver Date: Sat, 2 Oct 2021 12:06:05 +0800 Subject: [PATCH] [skip ci] Add desc comments for MetricsCacheManager (#9065) 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 6737765e69..b34c4e38b6 100644 --- a/internal/util/metricsinfo/cache.go +++ b/internal/util/metricsinfo/cache.go @@ -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