From 283d1748b5300b0c993ddd7c56ed684b55ab6e5e Mon Sep 17 00:00:00 2001 From: Andrew Gross Date: Wed, 9 Oct 2013 10:48:52 -0400 Subject: [PATCH] Minor Typo Correction Reading the logic, saw a few typos. Feel free to just fix them and not bother with a PR. Closed #38. --- .../discovery/ec2/AwsEc2UnicastHostsProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java b/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java index a8f99462b9442..d69ddea5d1398 100644 --- a/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java +++ b/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java @@ -185,13 +185,13 @@ public List 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);