CrazyHZM commented on code in PR #14028:
URL: https://github.com/apache/dubbo/pull/14028#discussion_r1554835292
##########
dubbo-remoting/dubbo-remoting-zookeeper-api/src/main/java/org/apache/dubbo/remoting/zookeeper/ZookeeperTransporter.java:
##########
@@ -27,16 +27,14 @@ public interface ZookeeperTransporter {
String CURATOR_5 = "curator5";
- String CURATOR = "curator";
-
ZookeeperClient connect(URL url);
void destroy();
static ZookeeperTransporter getExtension(ApplicationModel
applicationModel) {
ExtensionLoader<ZookeeperTransporter> extensionLoader =
applicationModel.getExtensionLoader(ZookeeperTransporter.class);
- return isHighVersionCurator() ?
extensionLoader.getExtension(CURATOR_5) : extensionLoader.getExtension(CURATOR);
+ return extensionLoader.getExtension(CURATOR_5);
Review Comment:
The existence of ZookeeperTransporter is not very meaningful, so consider
removing it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]