gapi: Move the World interface into resources

This was necessary to fix some "import cycle" errors I was having when
adding the World api to the resource Data struct.

I think this is a good hint that I need to start splitting up existing
packages into sub files, and cleaning up and inter-package problems too.
This commit is contained in:
James Shubin
2017-03-04 19:29:45 -05:00
parent 32aae8f57a
commit 44771a0049
4 changed files with 18 additions and 17 deletions

View File

@@ -443,6 +443,7 @@ func (obj *Main) Run() error {
Hostname: hostname,
Converger: converger,
Prometheus: prom,
World: world,
Prefix: pgraphPrefix,
Debug: obj.Flags.Debug,
})