From e194d80fe90e04a134648342b04d6b5a9bffee5b Mon Sep 17 00:00:00 2001 From: Max Ma Date: Sun, 10 Nov 2024 01:30:21 -1000 Subject: [PATCH] fix metric cache map issue (#3191) --- 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) {