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

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


The following commit(s) were added to refs/heads/3.0 by this push:
     new 3182c7a  start application (#1571)
3182c7a is described below

commit 3182c7ad78e4bd46bbbc1f6652313f395bee88d2
Author: wangxw <[email protected]>
AuthorDate: Thu Nov 11 14:25:56 2021 +0800

    start application (#1571)
    
    Co-authored-by: wangxiaowei14227 <[email protected]>
    Co-authored-by: lizhixin.lzx <[email protected]>
    Co-authored-by: LaurenceLiZhixin <[email protected]>
---
 config/root_config.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/config/root_config.go b/config/root_config.go
index edf4238..33efb7a 100644
--- a/config/root_config.go
+++ b/config/root_config.go
@@ -198,12 +198,11 @@ func (rc *RootConfig) Init() error {
 
 func (rc *RootConfig) Start() {
        startOnce.Do(func() {
+               rc.Consumer.Load()
                rc.Provider.Load()
                // todo if register consumer instance or has exported services
                exportMetadataService()
                registerServiceInstance()
-
-               rc.Consumer.Load()
        })
 }
 

Reply via email to