Sha256: 14a538cc6e0bb6582963b2d526d9ac13c9371c72a181f231d66380fda08cb34e

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

require 'sidekiq/circuit_breaker/middleware/client'
require 'sidekiq/circuit_breaker/middleware/server'

Sidekiq.configure_client do |config|
  config.client_middleware do |chain|
    chain.add Sidekiq::CircuitBreaker::Middleware::Client
  end
end

Sidekiq.configure_server do |config|
  config.client_middleware do |chain|
    chain.add Sidekiq::CircuitBreaker::Middleware::Client
  end
  config.server_middleware do |chain|
    chain.add Sidekiq::CircuitBreaker::Middleware::Server
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-circuit-breaker-0.1.5 lib/sidekiq/circuit_breaker/middleware.rb