From 4ce897e40945cce1cd1d8d22a307f8d558a17474 Mon Sep 17 00:00:00 2001 From: "mai.jh" Date: Mon, 21 Sep 2020 15:18:23 +0800 Subject: [PATCH] bug: fix the problem of incorrect judgment of http response code in SubscribeManager#getSubscribers() method (#3879) --- .../java/com/alibaba/nacos/naming/core/SubscribeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java b/naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java index e0b445ada7c..fcefcc0b3a1 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java @@ -102,7 +102,7 @@ public List getSubscribers(String serviceName, String namespaceId, b + UtilsAndCommons.NACOS_NAMING_CONTEXT + SUBSCRIBER_ON_SYNC_URL, new ArrayList<>(), paramValues); - if (!result.ok()) { + if (result.ok()) { Subscribers subscribers = JacksonUtils.toObj(result.getData(), Subscribers.class); subscriberList.addAll(subscribers.getSubscribers()); }