func handleNetworkEvents(netPlugin *plugin.NetPlugin, opts cliOpts, retErr chan error) { rsps := make(chan core.WatchState) go processStateEvent(netPlugin, opts, rsps) cfg := mastercfg.CfgNetworkState{} cfg.StateDriver = netPlugin.StateDriver retErr <- cfg.WatchAll(rsps) return }
func handleNetworkEvents(netPlugin *plugin.NetPlugin, opts core.InstanceInfo, retErr chan error) { rsps := make(chan core.WatchState) go processStateEvent(netPlugin, opts, rsps) cfg := mastercfg.CfgNetworkState{} cfg.StateDriver = netPlugin.StateDriver retErr <- cfg.WatchAll(rsps) log.Errorf("Error from handleNetworkEvents") }