Skip to content

Commit

Permalink
Merge pull request #105 from telami/master
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie authored Jun 2, 2024
2 parents 3acb6e3 + 6314620 commit dee8286
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.crossoverjie.cim.route.kit;

import com.alibaba.fastjson.JSON;
import com.crossoverjie.cim.route.config.AppConfiguration;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.I0Itec.zkclient.IZkChildListener;
Expand All @@ -24,6 +25,8 @@ public class ZKit {
@Autowired
private ZkClient zkClient;

@Autowired
private AppConfiguration appConfiguration;



Expand All @@ -33,7 +36,7 @@ public class ZKit {
* @return
*/
public List<String> getAllNode(){
List<String> children = zkClient.getChildren("/route");
List<String> children = zkClient.getChildren(appConfiguration.getZkRoot());
log.info("Query all node =[{}] success.", JSON.toJSONString(children));
return children;
}
Expand Down

0 comments on commit dee8286

Please sign in to comment.