Skip to content
Snippets Groups Projects
Commit 79d9e8ef authored by scott.wang's avatar scott.wang
Browse files

add Run method for Client

parent fe958352
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,8 @@ func newClient(namespace string) (*Client, error) {
controller: controller,
}
c.controller.Run()
return c, nil
}
......
......@@ -199,9 +199,12 @@ func (c *dubboRegistryController) deletePod(obj interface{}) {
}
func (c *dubboRegistryController) Run() {
logger.Debugf("starting namespaced informer-factory")
for _, factory := range c.namespacedInformerFactory {
go factory.Start(c.ctx.Done())
}
logger.Debugf("finish start namespaced informer-factory")
}
func (c *dubboRegistryController) run() {
......
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment