From d1f9c65ad58a787b9f9c8e0e44eb27ebe1e6a2b0 Mon Sep 17 00:00:00 2001 From: "blake.qiu" Date: Sun, 3 Sep 2023 23:17:10 +0800 Subject: [PATCH] fix(11083): Standardize the naming of the ServerlistChangeEvent class. --- .../com/alibaba/nacos/client/config/impl/ClientWorker.java | 2 +- ...{ServerlistChangeEvent.java => ServerListChangeEvent.java} | 2 +- .../alibaba/nacos/client/config/impl/ServerListManager.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename client/src/main/java/com/alibaba/nacos/client/config/impl/{ServerlistChangeEvent.java => ServerListChangeEvent.java} (93%) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java index 15d828c4f4c..eb8c2d67938 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java @@ -729,7 +729,7 @@ public void onEvent(Event event) { @Override public Class subscribeType() { - return ServerlistChangeEvent.class; + return ServerListChangeEvent.class; } }; NotifyCenter.registerSubscriber(subscriber); diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerlistChangeEvent.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListChangeEvent.java similarity index 93% rename from client/src/main/java/com/alibaba/nacos/client/config/impl/ServerlistChangeEvent.java rename to client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListChangeEvent.java index c30db33ce81..ffedd5c9a9e 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerlistChangeEvent.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListChangeEvent.java @@ -23,5 +23,5 @@ * * @author zongtanghu */ -public class ServerlistChangeEvent extends SlowEvent { +public class ServerListChangeEvent extends SlowEvent { } diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java index 4977a9e3f16..334097603ef 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java @@ -408,8 +408,8 @@ private void updateIfChanged(List newList) { currentServerAddr = iterator.next(); // Using unified event processor, NotifyCenter - NotifyCenter.publishEvent(new ServerlistChangeEvent()); - LOGGER.info("[{}] [update-serverlist] serverlist updated to {}", name, serverUrls); + NotifyCenter.publishEvent(new ServerListChangeEvent()); + LOGGER.info("[{}] [update-serverList] serverList updated to {}", name, serverUrls); } private List getApacheServerList(String url, String name) {