From 834a526ceecbeeab308aec1fa029a1fb91e3c5cd Mon Sep 17 00:00:00 2001 From: Max Ma Date: Sat, 9 Nov 2024 14:05:28 +0100 Subject: [PATCH] fix metric cache map issue --- pro/logic/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {