Skip to content

Commit

Permalink
去掉ZookeeperRegistry 中对zkclient的显示依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
bohrqiu committed Sep 26, 2013
1 parent 9109e91 commit fcb1ca6
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

import org.I0Itec.zkclient.exception.ZkNoNodeException;

import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.common.logger.Logger;
Expand Down Expand Up @@ -193,14 +191,10 @@ public List<URL> lookup(URL url) {
try {
List<String> providers = new ArrayList<String>();
for (String path : toCategoriesPath(url)) {
try {
List<String> children = zkClient.getChildren(path);
if (children != null) {
providers.addAll(children);
}
} catch (ZkNoNodeException e) {
// ignore
}
}
return toUrlsWithoutEmpty(url, providers);
} catch (Throwable e) {
Expand Down

0 comments on commit fcb1ca6

Please sign in to comment.