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

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 478f81a  fix the consul always pull service list (#5346)
478f81a is described below

commit 478f81a5ba4b0e84335221c7a293393f184e2543
Author: Mr.Z <[email protected]>
AuthorDate: Mon Nov 18 22:08:34 2019 +0800

    fix the consul always pull service list (#5346)
---
 .../java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java
 
b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java
index 12cdc29..e59fbc8 100644
--- 
a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java
+++ 
b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java
@@ -306,7 +306,7 @@ public class ConsulServiceDiscovery implements 
ServiceDiscovery, EventListener<S
         }
 
         private void processService() {
-            Response<List<HealthService>> response = 
getHealthServices(serviceName, -1, Integer.MAX_VALUE);
+            Response<List<HealthService>> response = 
getHealthServices(serviceName, consulIndex, Integer.MAX_VALUE);
             Long currentIndex = response.getConsulIndex();
             if (currentIndex != null && currentIndex > consulIndex) {
                 consulIndex = currentIndex;

Reply via email to