lib, pgraph, resources: Refactor data association API
This should make things cleaner and help avoid as much churn every time we change a property.
This commit is contained in:
@@ -658,7 +658,7 @@ func (g *Graph) AssociateData(data *resources.Data) {
|
||||
g.prometheus = data.Prometheus
|
||||
|
||||
for k := range g.Adjacency {
|
||||
k.Res.AssociateData(data)
|
||||
*k.Res.Data() = *data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user