dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [dubbo-go] wangxw666 opened a new issue #1316: consumerConfigurationListener shoud is application level
Date Mon, 12 Jul 2021 19:52:19 GMT

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


Mime
View raw message