Sha256: 6687a004dfa430cf3713bd6e2219d63511902b0b86831f6e6de63a150be835cc

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-0.6.0 lib/sidekiq/middleware/client/resque_web_compatibility.rb