lib/sidekiq/middleware/client/resque_web_compatibility.rb in sidekiq-0.6.0 vs lib/sidekiq/middleware/client/resque_web_compatibility.rb in sidekiq-0.7.0

- old
+ new

@@ -1,14 +1,11 @@ module Sidekiq module Middleware module Client class ResqueWebCompatibility - def initialize(redis) - @redis = redis - end def call(item, queue) - @redis.sadd('queues', queue) + Sidekiq.redis.sadd('queues', queue) yield end end end