作者 crossoverJie

:bug: Fixing a bug.优化 Zookeeper

... ... @@ -41,7 +41,7 @@ public class RegistryZK implements Runnable {
//是否要将自己注册到 ZK
if (appConfiguration.isZkSwitch()){
String path = appConfiguration.getZkRoot() + "/ip-" + ip + ":" + cimServerPort + ":" + httpPort;
zKit.createNode(path, path);
zKit.createNode(path);
logger.info("注册 zookeeper 成功,msg=[{}]", path);
}
... ...
... ... @@ -43,10 +43,9 @@ public class ZKit {
* 写入指定节点 临时目录
*
* @param path
* @param value
*/
public void createNode(String path, String value) {
zkClient.createEphemeral(path, value);
public void createNode(String path) {
zkClient.createEphemeral(path);
}
}
... ...