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

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


The following commit(s) were added to refs/heads/main by this push:
     new 3fcc135f2 Start a new routine when subscribing (#2297)
3fcc135f2 is described below

commit 3fcc135f200431b186424c38ccd576cb0368f6d3
Author: Ken Liu <[email protected]>
AuthorDate: Fri Apr 7 17:47:00 2023 +0800

    Start a new routine when subscribing (#2297)
---
 registry/protocol/protocol.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registry/protocol/protocol.go b/registry/protocol/protocol.go
index cbc610a06..822f62207 100644
--- a/registry/protocol/protocol.go
+++ b/registry/protocol/protocol.go
@@ -161,7 +161,7 @@ func (proto *registryProtocol) Refer(url *common.URL) 
protocol.Invoker {
                logger.Errorf("Directory %v is expected to implement Directory, 
and will return nil invoker!", dic)
                return nil
        }
-       regDic.Subscribe(registryUrl.SubURL)
+       go regDic.Subscribe(registryUrl.SubURL)
 
        err = reg.Register(serviceUrl)
        if err != nil {

Reply via email to