fix metric cache map issue (#3191)

This commit is contained in:
Max Ma 2024-11-10 01:30:21 -10:00 committed by GitHub
parent 276998b1dd
commit e194d80fe9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {