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 <[email protected]>
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

Reply via email to