You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by zh...@apache.org on 2021/08/03 13:58:12 UTC

[dubbo-go] branch config-enhance updated: up:router为数组

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

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


The following commit(s) were added to refs/heads/config-enhance by this push:
     new 45143a8  up:router为数组
     new c9d58c0  Merge pull request #1365 from zhaoyunxing92/config-enhance
45143a8 is described below

commit 45143a83d1835875ca52096fab2c51f8e1b5de53
Author: zhaoyunxing92 <23...@qq.com>
AuthorDate: Tue Aug 3 21:57:08 2021 +0800

    up:router为数组
---
 config/root_config.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/root_config.go b/config/root_config.go
index b2818f1..0088ce1 100644
--- a/config/root_config.go
+++ b/config/root_config.go
@@ -38,9 +38,10 @@ type RootConfig struct {
 	// Shutdown config
 	Shutdown *ShutdownConfig `yaml:"shutdown" json:"shutdown,omitempty" property:"shutdown"`
 
+    // Deprecated
 	Network map[interface{}]interface{} `yaml:"network" json:"network,omitempty" property:"network"`
 
-	Router *RouterConfig `yaml:"router" json:"router,omitempty" property:"router"`
+	Router []*RouterConfig `yaml:"router" json:"router,omitempty" property:"router"`
 	// is refresh action
 	refresh bool
 	// prefix              string