diff --git a/pro/logic/metrics.go b/pro/logic/metrics.go index 81e61018c..a18826fcb 100644 --- a/pro/logic/metrics.go +++ b/pro/logic/metrics.go @@ -17,7 +17,7 @@ import ( var ( metricsCacheMutex = &sync.RWMutex{} - metricsCacheMap map[string]models.Metrics + metricsCacheMap = make(map[string]models.Metrics) ) func getMetricsFromCache(key string) (metrics models.Metrics, ok bool) {