DaveTeng0 commented on code in PR #1060:
URL: https://github.com/apache/ratis/pull/1060#discussion_r1550291160
##########
ratis-shell/src/main/java/org/apache/ratis/shell/cli/sh/local/RaftMetaConfCommand.java:
##########
@@ -70,10 +71,14 @@ public int run(CommandLine cl) throws IOException {
return -1;
}
List<RaftPeerProto> raftPeerProtos = new ArrayList<>();
- for (String address : peersStr.split(",")) {
- String peerId =
RaftUtils.getPeerId(parseInetSocketAddress(address)).toString();
+ for (String idWithAddress : peersStr.split(",")) {
+ String[] peerIdWithAddress = idWithAddress.split(SEPARATOR);
+
+ String peerId =
RaftPeerId.getRaftPeerId(peerIdWithAddress[0]).toString();
Review Comment:
sure, let me think a bit how to make that peerId string become optional from
input.
--
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]