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:
James Shubin
2017-03-04 04:01:32 -05:00
parent 8207e23cd9
commit 32aae8f57a
3 changed files with 12 additions and 13 deletions

View File

@@ -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
}
}