Jelajahi Sumber

fix metric cache map issue (#3191)

Max Ma 10 bulan lalu
induk
melakukan
e194d80fe9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pro/logic/metrics.go

+ 1 - 1
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) {