Sha256: 5243aa11fd2946c502b790f0122d3964d35df559e17e97d683625bf8114775aa

Contents?: true

Size: 322 Bytes

Versions: 10

Compression:

Stored size: 322 Bytes

Contents

module Sidekiq
  module Monitor
    module Client
      class Middleware
        def initialize(options=nil)
          @processor = Monitor::Processor.new
        end

        def call(worker_class, item, queue)
          @processor.queue(worker_class, item, queue)
          yield
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sidekiq_monitor-0.1.1 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.9 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.8 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.7 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.6 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.5 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.4 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.3 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.2 lib/sidekiq/monitor/client/middleware.rb
sidekiq_monitor-0.0.1 lib/sidekiq/monitor/client/middleware.rb