summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-12-18 13:41:49 +0200
committerSteve Kemp <steve@steve.org.uk>2015-12-18 13:41:49 +0200
commit55ca438b2db24eadd2a5008f6f9d13fcf25a30fa (patch)
treebe465a5451eba55b7eb63e1f983e7af2ce6c2557 /lib
parentee19f3ee8a0dce831e0c8edb3d7614e2ac84a608 (diff)
Updated to use the right form of counting for the set.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/queue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb
index c8dfed8..d1f4a2c 100644
--- a/lib/custodian/queue.rb
+++ b/lib/custodian/queue.rb
@@ -110,7 +110,7 @@ module Custodian
# How many jobs in the queue?
#
def size?
- @redis.zcard('custodian_queue')
+ @redis.scard('custodian_queue')
end