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 a8db694 fix dubbo serverConfig struct point check Validity issue
new 5d30e9a Merge pull request #111 from flixgithub/dubbogo-flix
a8db694 is described below
commit a8db694b281707bb1da7c7f683b784c8e40ba32b
Author: lxd168375 <[email protected]>
AuthorDate: Sat Jun 29 14:14:34 2019 +0800
fix dubbo serverConfig struct point check Validity issue
---
protocol/dubbo/server.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/protocol/dubbo/server.go b/protocol/dubbo/server.go
index ac521bd..25c8f1b 100644
--- a/protocol/dubbo/server.go
+++ b/protocol/dubbo/server.go
@@ -68,6 +68,11 @@ func init() {
func SetServerConfig(s ServerConfig) {
srvConf = &s
+ err := srvConf.CheckValidity()
+ if err != nil {
+ logger.Warnf("[ServerConfig CheckValidity] error: %v", err)
+ return
+ }
}
func GetServerConfig() ServerConfig {