Skip to content

Commit fcb1ca6

Browse files
committedSep 26, 2013
去掉ZookeeperRegistry 中对zkclient的显示依赖
1 parent 9109e91 commit fcb1ca6

File tree

1 file changed

+0
-6
lines changed
  • dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper

1 file changed

+0
-6
lines changed
 

‎dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java

-6
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import java.util.concurrent.ConcurrentHashMap;
2222
import java.util.concurrent.ConcurrentMap;
2323

24-
import org.I0Itec.zkclient.exception.ZkNoNodeException;
25-
2624
import com.alibaba.dubbo.common.Constants;
2725
import com.alibaba.dubbo.common.URL;
2826
import com.alibaba.dubbo.common.logger.Logger;
@@ -193,14 +191,10 @@ public List<URL> lookup(URL url) {
193191
try {
194192
List<String> providers = new ArrayList<String>();
195193
for (String path : toCategoriesPath(url)) {
196-
try {
197194
List<String> children = zkClient.getChildren(path);
198195
if (children != null) {
199196
providers.addAll(children);
200197
}
201-
} catch (ZkNoNodeException e) {
202-
// ignore
203-
}
204198
}
205199
return toUrlsWithoutEmpty(url, providers);
206200
} catch (Throwable e) {

0 commit comments

Comments
 (0)
Please sign in to comment.