Mulavar commented on a change in pull request #1765:
URL: https://github.com/apache/dubbo-go/pull/1765#discussion_r812599038
##########
File path: config/consumer_config.go
##########
@@ -137,24 +137,24 @@ func (cc *ConsumerConfig) Load() {
var count int
for {
checkok := true
- for _, refconfig := range cc.References {
- if (refconfig.Check != nil && *refconfig.Check) ||
- (refconfig.Check == nil && cc.Check) ||
- (refconfig.Check == nil) { // default to true
+ for key, ref := range cc.References {
+ if (ref.Check != nil && *ref.Check &&
GetProviderService(key) == nil) ||
+ (ref.Check == nil && cc.Check &&
GetProviderService(key) == nil) ||
Review comment:
一般references的key和services的key一般不一样吧,那使用references的key能找到对应的provider
service么?
--
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]