[ISSUE#7738]Client code should use enabled to pass parameters (#7756)
* use enabled * add var
This commit is contained in:
parent
ede1df62e3
commit
9a26a65bc5
@ -101,6 +101,8 @@ public class NamingHttpClientProxy extends AbstractNamingClientProxy {
|
||||
private static final String CLIENT_IP_PARAM = "clientIP";
|
||||
|
||||
private static final String HEALTHY_ONLY_PARAM = "healthyOnly";
|
||||
|
||||
private static final String REGISTER_ENABLE_PARAM = "enable";
|
||||
|
||||
private final String namespaceId;
|
||||
|
||||
@ -154,7 +156,7 @@ public class NamingHttpClientProxy extends AbstractNamingClientProxy {
|
||||
params.put(IP_PARAM, instance.getIp());
|
||||
params.put(PORT_PARAM, String.valueOf(instance.getPort()));
|
||||
params.put(WEIGHT_PARAM, String.valueOf(instance.getWeight()));
|
||||
params.put("enable", String.valueOf(instance.isEnabled()));
|
||||
params.put(REGISTER_ENABLE_PARAM, String.valueOf(instance.isEnabled()));
|
||||
params.put(HEALTHY_PARAM, String.valueOf(instance.isHealthy()));
|
||||
params.put(EPHEMERAL_PARAM, String.valueOf(instance.isEphemeral()));
|
||||
params.put(META_PARAM, JacksonUtils.toJson(instance.getMetadata()));
|
||||
|
Loading…
Reference in New Issue
Block a user