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 2022/02/23 06:52:54 UTC
[GitHub] [dubbo-go] ChangedenCZD commented on a change in pull request #1765: fix:consumer和provider在一起时抛异常
ChangedenCZD commented on a change in pull request #1765:
URL: https://github.com/apache/dubbo-go/pull/1765#discussion_r812599656
##########
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) ||
Review comment:
这些引用提取为变量会不会整洁很多
--
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