From 111d7e3f77180b3f7f316e004991dbc56fc044f5 Mon Sep 17 00:00:00 2001 From: musi Date: Thu, 19 Jan 2023 15:26:54 +0800 Subject: [PATCH] fix: fix the bug that the eds protocol is never observed --- .../java/com/alibaba/cloud/governance/istio/PilotExchanger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java b/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java index d442c8b779..0c769303b3 100644 --- a/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java +++ b/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java @@ -64,7 +64,7 @@ private void observeListeners(List listeners) { private void observeClusters(List clusters) { Set resourceName = cdsProtocol.getResourceNames(); - if (CollectionUtils.isEmpty(resourceName)) { + if (!CollectionUtils.isEmpty(resourceName)) { // eds edsProtocol.observeResource(resourceName, this::observeEndpoints); }