Skip to content

Commit

Permalink
fix(11083): Standardize the naming of the ServerlistChangeEvent class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Qiu committed Sep 3, 2023
1 parent 828acd3 commit d1f9c65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public void onEvent(Event event) {

@Override
public Class<? extends Event> subscribeType() {
return ServerlistChangeEvent.class;
return ServerListChangeEvent.class;
}
};
NotifyCenter.registerSubscriber(subscriber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
*
* @author zongtanghu
*/
public class ServerlistChangeEvent extends SlowEvent {
public class ServerListChangeEvent extends SlowEvent {
}
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ private void updateIfChanged(List<String> 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<String> getApacheServerList(String url, String name) {
Expand Down

0 comments on commit d1f9c65

Please sign in to comment.