Skip to content

Commit

Permalink
Minor Typo Correction
Browse files Browse the repository at this point in the history
Reading the logic, saw a few typos. Feel free to just fix them and not bother with a PR.

Closed #38.
  • Loading branch information
andrewgross authored and dadoonet committed Nov 26, 2013
1 parent 3c23373 commit 283d174
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ public List<DiscoveryNode> buildDynamicNodes() {
if (address != null) {
try {
TransportAddress[] addresses = transportService.addressesFromString(address);
// we only limit to 1 addresses, makes no sense to ping 100 ports
// we only limit to 1 address, makes no sense to ping 100 ports
for (int i = 0; (i < addresses.length && i < UnicastZenPing.LIMIT_PORTS_COUNT); i++) {
logger.trace("adding {}, address {}, transport_address {}", instance.getInstanceId(), address, addresses[i]);
discoNodes.add(new DiscoveryNode("#cloud-" + instance.getInstanceId() + "-" + i, addresses[i], Version.CURRENT));
}
} catch (Exception e) {
logger.warn("failed ot add {}, address {}", e, instance.getInstanceId(), address);
logger.warn("failed to add {}, address {}", e, instance.getInstanceId(), address);
}
} else {
logger.trace("not adding {}, address is null, host_type {}", instance.getInstanceId(), hostType);
Expand Down

0 comments on commit 283d174

Please sign in to comment.