Skip to content

Commit

Permalink
去掉部分配置
Browse files Browse the repository at this point in the history
Signed-off-by: xiaozhao <[email protected]>
  • Loading branch information
xiaozhao committed Dec 24, 2024
1 parent 1674da9 commit 5203286
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,11 @@ public class NacosRegisterConfig implements PluginConfig {
*/
private String privateKey;

/**
* Typically used to specify the full URL of the Nacos server, including the protocol (such as http or https)
*/
private String endpoint = "";

/**
* Namespace
*/
private String namespace;

/**
* The name of the nacos log file
*/
private String logName;

/**
* The weight of the service instance
*/
Expand Down Expand Up @@ -186,14 +176,6 @@ public void setPassword(String password) {
this.password = password;
}

public String getEndpoint() {
return endpoint;
}

public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}

public String getNamespace() {
return namespace;
}
Expand All @@ -202,14 +184,6 @@ public void setNamespace(String namespace) {
this.namespace = namespace;
}

public String getLogName() {
return logName;
}

public void setLogName(String logName) {
this.logName = logName;
}

public float getWeight() {
return weight;
}
Expand Down Expand Up @@ -330,8 +304,6 @@ public Properties getNacosProperties() {
}
properties.put(PropertyKeyConst.SERVER_ADDR, lbConfig.getRegistryAddress());
properties.put(PropertyKeyConst.NAMESPACE, Objects.toString(namespace, ""));
properties.put(PropertyKeyConst.NACOS_NAMING_LOG_NAME, Objects.toString(logName, ""));
properties.put(PropertyKeyConst.ENDPOINT, Objects.toString(endpoint, ""));
properties.put(PropertyKeyConst.ACCESS_KEY, Objects.toString(accessKey, ""));
properties.put(PropertyKeyConst.SECRET_KEY, Objects.toString(secretKey, ""));
properties.put(PropertyKeyConst.CLUSTER_NAME, clusterName);
Expand Down

0 comments on commit 5203286

Please sign in to comment.