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

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


The following commit(s) were added to refs/heads/1.5.1 by this push:
     new bb39786  fix subscribe url wrong
     new 0b81ef4  Merge pull request #724 from Patrick0308/1.5.1
bb39786 is described below

commit bb39786f8d6f0a44ad0186e348f41c57bcf51839
Author: Patrick <dreamlike....@foxmail.com>
AuthorDate: Fri Aug 21 16:12:51 2020 +0800

    fix subscribe url wrong
---
 registry/servicediscovery/service_discovery_registry.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registry/servicediscovery/service_discovery_registry.go 
b/registry/servicediscovery/service_discovery_registry.go
index cdb586c..7576804 100644
--- a/registry/servicediscovery/service_discovery_registry.go
+++ b/registry/servicediscovery/service_discovery_registry.go
@@ -632,7 +632,7 @@ func (icn *InstanceChangeNotify) Notify(event 
observer.Event) {
 
        if se, ok := event.(*registry.ServiceInstancesChangedEvent); ok {
                sdr := icn.serviceDiscoveryRegistry
-               sdr.subscribe(sdr.url, icn.notify, se.ServiceName, se.Instances)
+               sdr.subscribe(sdr.url.SubURL, icn.notify, se.ServiceName, 
se.Instances)
        }
 }
 

Reply via email to