Skip to content
This repository
Browse code

_actually_ uniq the endpoints. derp.

  • Loading branch information...
commit 17b5aa548415acd7252ddc3783c117db78ffedd5 1 parent aff0a9c
Benjamin Black authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/cassandra/0.7/cassandra.rb
4  lib/cassandra/0.7/cassandra.rb
@@ -39,7 +39,7 @@ def cluster_name
39 39
   end
40 40
 
41 41
   def ring
42  
-    client.describe_ring(@keyspace).uniq
  42
+    client.describe_ring(@keyspace)
43 43
   end
44 44
 
45 45
   def partitioner
@@ -154,7 +154,7 @@ def check_keyspace(ks = @keyspace)
154 154
 
155 155
   def all_nodes
156 156
     if @auto_discover_nodes && !@keyspace.eql?("system")
157  
-      ips = (new_client.describe_ring(@keyspace).map {|range| range.endpoints}).flatten
  157
+      ips = (new_client.describe_ring(@keyspace).map {|range| range.endpoints}).flatten.uniq
158 158
       port = @servers.first.split(':').last
159 159
       ips.map{|ip| "#{ip}:#{port}" }
160 160
     else

0 notes on commit 17b5aa5

Please sign in to comment.
Something went wrong with that request. Please try again.