Skip to content

Commit

Permalink
improvements based on noah's CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Bhat committed Apr 5, 2012
1 parent 7466810 commit 949958a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cassandra-queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def initialize(qid, string_queue, keyspace, servers)

@key = qid_to_rowkey qid
# Set cassandra client if it has not already been set
@client ||= create_client(keyspace, servers)
@client = create_client(keyspace, servers)
@queue_cf = string_queue ? DEFAULT_STRING_QUEUE : DEFAULT_BYTES_QUEUE
end

Expand All @@ -109,7 +109,7 @@ def qid_to_rowkey(qid)
end

def create_client(keyspace, servers)
::Cassandra.new(keyspace, servers.flatten)
::Cassandra.new(keyspace, [servers].flatten)
end
end
end

0 comments on commit 949958a

Please sign in to comment.