Sha256: 9764825cc600d475887cd771b5acf3fc26ae789e96e5e27be6b6960b12655fd7

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

require 'sidekiq_unique_jobs/connectors/testing'
require 'sidekiq_unique_jobs/connectors/redis_pool'
require 'sidekiq_unique_jobs/connectors/sidekiq_redis'

module SidekiqUniqueJobs
  module Connectors
    CONNECTOR_TYPES = [Testing, RedisPool, SidekiqRedis]

    def self.connection(redis_pool = nil, &block)
      CONNECTOR_TYPES.each do |connector|
        had_connection = connector.connection(redis_pool, &block)
        break if had_connection
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-3.0.14 lib/sidekiq_unique_jobs/connectors.rb
sidekiq-unique-jobs-3.0.13 lib/sidekiq_unique_jobs/connectors.rb
sidekiq-unique-jobs-3.0.12 lib/sidekiq_unique_jobs/connectors.rb