Skip to content

Commit

Permalink
feat: remove redundant address check
Browse files Browse the repository at this point in the history
  • Loading branch information
caicancai committed Jun 29, 2024
1 parent aefb594 commit c0081f3
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ public void addAddress(final Endpoint addr) {
* Adds a node.
*/
public boolean add(final Node node) {
// check address ok?
if (!serverExists(node.getNodeId().getPeerId().getEndpoint())) {
return false;
}
final NodeId nodeId = node.getNodeId();
if (this.nodeMap.putIfAbsent(nodeId, node) == null) {
final String groupId = node.getGroupId();
Expand Down

0 comments on commit c0081f3

Please sign in to comment.