[skip ci] Add desc comments for InvalidateSystemInfoMetrics (#9275)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-10-05 20:43:01 +08:00 committed by GitHub
parent 4bac5b1f4d
commit 1758227cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ func (manager *MetricsCacheManager) ResetRetention() {
manager.retention = DefaultMetricsRetention
}
// InvalidateSystemInfoMetrics invalidates the system information metrics.
func (manager *MetricsCacheManager) InvalidateSystemInfoMetrics() {
manager.systemInfoMetricsMtx.Lock()
defer manager.systemInfoMetricsMtx.Unlock()