Skip to content

Commit

Permalink
Use multi instead of pipelined.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Apr 27, 2012
1 parent f8bd7fc commit bd87aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qless/queue.rb
Expand Up @@ -72,7 +72,7 @@ def stats(date=nil)

# How many items in the queue?
def length
(@client.redis.pipelined do
(@client.redis.multi do
@client.redis.zcard("ql:q:" + @name + "-locks")
@client.redis.zcard("ql:q:" + @name + "-work")
@client.redis.zcard("ql:q:" + @name + "-scheduled")
Expand Down

0 comments on commit bd87aed

Please sign in to comment.