mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-05 07:37:30 +01:00
fix panic caused by concurrent map writes
This commit is contained in:
@@ -126,6 +126,9 @@ func initClusterConfig() error {
|
||||
if newMetric.Energy != "" {
|
||||
sc.EnergyFootprint = append(sc.EnergyFootprint, newMetric.Name)
|
||||
}
|
||||
|
||||
// Init Topology Lookup Maps Once Per Subcluster
|
||||
sc.Topology.InitTopologyMaps()
|
||||
}
|
||||
|
||||
item := metricLookup[mc.Name]
|
||||
|
||||
Reference in New Issue
Block a user