diff options
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/queue.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index 24411f2..bb67c8e 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -65,7 +65,7 @@ module Custodian def flush! raise 'Subclasses must implement this method!' end -end + end @@ -96,7 +96,7 @@ end loop do - foo, job = @redis.blpop('queue', :timeout => timeout) + _foo, job = @redis.blpop('queue', :timeout => timeout) if job return job @@ -164,7 +164,7 @@ end else raise 'ERRROR' end - rescue Beanstalk::TimedOut => ex + rescue Beanstalk::TimedOut => _ex return nil end end |