diff --git a/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchEntry.java b/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchEntry.java index b3233c430..f48a44f8a 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchEntry.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchEntry.java @@ -59,5 +59,5 @@ public class SwitchEntry { public static final String PARAM_JSON = "json"; public static final String OVERRIDDEN_SERVER_STATUS = "overriddenServerStatus"; - public static final String INSTANCE_DEFAULT_EPHEMERAL = "instanceDefaultEphemeral"; + public static final String DEFAULT_INSTANCE_EPHEMERAL = "defaultInstanceEphemeral"; } diff --git a/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java b/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java index b6ffc83fb..e34192c56 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/misc/SwitchManager.java @@ -262,7 +262,7 @@ public class SwitchManager implements RecordListener { switchDomain.setOverriddenServerStatus(status); } - if (entry.equals(SwitchEntry.INSTANCE_DEFAULT_EPHEMERAL)) { + if (entry.equals(SwitchEntry.DEFAULT_INSTANCE_EPHEMERAL)) { String defaultEphemeral = value; switchDomain.setDefaultInstanceEphemeral(Boolean.parseBoolean(defaultEphemeral)); }