You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2019/06/28 12:52:15 UTC

[dubbo-go] branch master updated: fix dubbo clientConfig struct point check Validity issue

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/master by this push:
     new daf9d14  fix dubbo clientConfig struct point check Validity issue
     new d1d8715  Merge pull request #108 from flixgithub/dubbogo-flix
daf9d14 is described below

commit daf9d141022d54a3236ac79ec55ff4da58095aaa
Author: lxd168375 <lx...@alibaba-inc.com>
AuthorDate: Fri Jun 28 17:16:27 2019 +0800

    fix dubbo clientConfig struct point check Validity issue
---
 protocol/dubbo/client.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/protocol/dubbo/client.go b/protocol/dubbo/client.go
index 72abcda..56f9509 100644
--- a/protocol/dubbo/client.go
+++ b/protocol/dubbo/client.go
@@ -82,6 +82,11 @@ func init() {
 
 func SetClientConf(c ClientConfig) {
 	clientConf = &c
+	err := clientConf.CheckValidity()
+	if err != nil {
+		logger.Warnf("[ClientConfig CheckValidity] error: %v", err)
+		return
+	}
 }
 
 func GetClientConf() ClientConfig {