chuntaojun commented on code in PR #2075:
URL: https://github.com/apache/dubbo-go/pull/2075#discussion_r997649550


##########
registry/polaris/registry.go:
##########
@@ -167,8 +159,28 @@ func (pr *polarisRegistry) Subscribe(url *common.URL, 
notifyListener registry.No
                        <-time.After(time.Duration(RegistryConnDelay) * 
time.Second)
                        continue
                }
+               serviceName := getServiceName(url)
+               watcher, err := pr.createPolarisWatcher(serviceName)
+               if err != nil {
+                       return err
+               }
+
+               watcher.AddSubscriber(func(et remoting.EventType, instances 
[]model.Instance) {
+                       dubboInstances := make([]registry.ServiceInstance, 0, 
len(instances))

Review Comment:
   dubboInstances 通知到哪里?没看到



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to