You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/12 19:52:19 UTC

[GitHub] [dubbo-go] wangxw666 opened a new issue #1316: consumerConfigurationListener shoud is application level

wangxw666 opened a new issue #1316:
URL: https://github.com/apache/dubbo-go/issues/1316


   ```
   func NewRegistryDirectory(url *common.URL, registry registry.Registry) (cluster.Directory, error) {
   	dir := &RegistryDirectory{
   		BaseDirectory:    directory.NewBaseDirectory(url),
   		cacheInvokers:    []protocol.Invoker{},
   		cacheInvokersMap: &sync.Map{},
   		serviceType:      url.SubURL.Service(),
   		registry:         registry,
   	}
   
   	....
   
   	dir.consumerConfigurationListener = newConsumerConfigurationListener(dir)
   
   	go dir.subscribe(url.SubURL)
   	return dir, nil
   }
   ```
   
   每个服务一个RegistryDirectory,但是consumerConfigurationListener应该是应用级别的


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin closed issue #1316: consumerConfigurationListener shoud is application level

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin closed issue #1316:
URL: https://github.com/apache/dubbo-go/issues/1316


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] LaurenceLiZhixin commented on issue #1316: consumerConfigurationListener shoud is application level

Posted by GitBox <gi...@apache.org>.
LaurenceLiZhixin commented on issue #1316:
URL: https://github.com/apache/dubbo-go/issues/1316#issuecomment-881827965


   会在3.0 后续版本和 config 新结构 一起优化


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org