adoroszlai commented on a change in pull request #401:
URL: https://github.com/apache/incubator-ratis/pull/401#discussion_r562483339
##########
File path: ratis-common/src/main/java/org/apache/ratis/protocol/RaftPeer.java
##########
@@ -141,11 +181,21 @@ public RaftPeerId getId() {
return id;
}
- /** @return The RPC address of the peer. */
+ /** @return The RPC address of the peer for server-server communication. */
public String getAddress() {
return address;
}
+ /** @return The RPC address of the peer for admin operations. */
+ public String getAdminAddress() {
+ return adminAddress != null ? adminAddress : address;
Review comment:
Good idea, done. Thanks.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]