Stellar1999 commented on code in PR #14028:
URL: https://github.com/apache/dubbo/pull/14028#discussion_r1555439914
##########
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:
Please take another look. Do you think my code is correct? I removed the SPI
and moved the ZookeeperTransporter to the module
`dubbo-remoting-zookeeper-curator5` in order to create an instance of
Curator5ZookeeperTransporter. @CrazyHZM Thanks for your code review.
--
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]