1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib/sidekiq/middleware/client/resque_web_compatibility.rb

18 lines
282 B
Ruby
Raw Normal View History

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