Skip to content

Commit

Permalink
fix metric cache map issue (#3191)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma authored Nov 10, 2024
1 parent 276998b commit e194d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/logic/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e194d80

Please sign in to comment.