|
|
@ -92,7 +92,9 @@ public class NacosServiceDiscovery {
|
|
|
|
metadata.put("nacos.weight", instance.getWeight() + "");
|
|
|
|
metadata.put("nacos.weight", instance.getWeight() + "");
|
|
|
|
metadata.put("nacos.healthy", instance.isHealthy() + "");
|
|
|
|
metadata.put("nacos.healthy", instance.isHealthy() + "");
|
|
|
|
metadata.put("nacos.cluster", instance.getClusterName() + "");
|
|
|
|
metadata.put("nacos.cluster", instance.getClusterName() + "");
|
|
|
|
metadata.putAll(instance.getMetadata());
|
|
|
|
if (instance.getMetadata() != null) {
|
|
|
|
|
|
|
|
metadata.putAll(instance.getMetadata());
|
|
|
|
|
|
|
|
}
|
|
|
|
nacosServiceInstance.setMetadata(metadata);
|
|
|
|
nacosServiceInstance.setMetadata(metadata);
|
|
|
|
|
|
|
|
|
|
|
|
if (metadata.containsKey("secure")) {
|
|
|
|
if (metadata.containsKey("secure")) {
|
|
|
|