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) {