From ba25903156206602fe7aca140f357427e3859d0c Mon Sep 17 00:00:00 2001 From: pizihao <2335715300@qq.com> Date: Mon, 5 Sep 2022 21:53:10 +0800 Subject: [PATCH] fix : add log error message --- .../refresher/event/AbstractRefreshListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hippo4j-spring-boot/hippo4j-config-spring-boot-starter/src/main/java/cn/hippo4j/config/springboot/starter/refresher/event/AbstractRefreshListener.java b/hippo4j-spring-boot/hippo4j-config-spring-boot-starter/src/main/java/cn/hippo4j/config/springboot/starter/refresher/event/AbstractRefreshListener.java index 3ac77bc9..4823f2b4 100644 --- a/hippo4j-spring-boot/hippo4j-config-spring-boot-starter/src/main/java/cn/hippo4j/config/springboot/starter/refresher/event/AbstractRefreshListener.java +++ b/hippo4j-spring-boot/hippo4j-config-spring-boot-starter/src/main/java/cn/hippo4j/config/springboot/starter/refresher/event/AbstractRefreshListener.java @@ -95,10 +95,10 @@ public abstract class AbstractRefreshListener implements RefreshListener i.check(ipSegment, port)); + .distinct() + .map(IpAndPort::build) + .filter(Objects::nonNull) + .anyMatch(i -> i.check(ipSegment, port)); } /** @@ -123,7 +123,7 @@ public abstract class AbstractRefreshListener implements RefreshListener