mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 21:05:54 +08:00
fix metric cache map issue (#3191)
This commit is contained in:
parent
276998b1dd
commit
e194d80fe9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue