Browse Source

Merge branch 'release-v0.26.0' into NET-1773

Abhishek K 10 months ago
parent
commit
9452ba5926
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pro/logic/metrics.go

+ 1 - 1
pro/logic/metrics.go

@@ -17,7 +17,7 @@ import (
 
 
 var (
 var (
 	metricsCacheMutex = &sync.RWMutex{}
 	metricsCacheMutex = &sync.RWMutex{}
-	metricsCacheMap   map[string]models.Metrics
+	metricsCacheMap   = make(map[string]models.Metrics)
 )
 )
 
 
 func getMetricsFromCache(key string) (metrics models.Metrics, ok bool) {
 func getMetricsFromCache(key string) (metrics models.Metrics, ok bool) {