AlexStocks commented on code in PR #3387:
URL: https://github.com/apache/dubbo-go/pull/3387#discussion_r3384837954


##########
registry/etcdv3/listener.go:
##########
@@ -37,18 +37,37 @@ import (
 )
 
 type dataListener struct {
-       interestedURL []*common.URL
-       listener      config_center.ConfigurationListener
+       subscribed map[string]config_center.ConfigurationListener
+       mutex      sync.Mutex

Review Comment:
   这个 mutex是为了guard subscribed 的吗?如是,挪到 subscribed  上面去 



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