Skip to content

Commit

Permalink
Merge pull request #724 from Patrick0308/1.5.1
Browse files Browse the repository at this point in the history
fix: When using service discovery and provider is registered, consumer can't refresh directory
  • Loading branch information
zouyx authored Aug 21, 2020
2 parents b7ae2ce + bb39786 commit 0b81ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/servicediscovery/service_discovery_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 0b81ef4

Please sign in to comment.