Skip to content

Commit

Permalink
_actually_ uniq the endpoints. derp.
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Sep 7, 2010
1 parent aff0a9c commit 17b5aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cassandra/0.7/cassandra.rb
Expand Up @@ -39,7 +39,7 @@ def cluster_name
end

def ring
client.describe_ring(@keyspace).uniq
client.describe_ring(@keyspace)
end

def partitioner
Expand Down Expand Up @@ -154,7 +154,7 @@ def check_keyspace(ks = @keyspace)

def all_nodes
if @auto_discover_nodes && !@keyspace.eql?("system")
ips = (new_client.describe_ring(@keyspace).map {|range| range.endpoints}).flatten
ips = (new_client.describe_ring(@keyspace).map {|range| range.endpoints}).flatten.uniq
port = @servers.first.split(':').last
ips.map{|ip| "#{ip}:#{port}" }
else
Expand Down

0 comments on commit 17b5aa5

Please sign in to comment.