mirror of
https://github.com/discourse/discourse.git
synced 2025-04-30 02:14:36 +08:00
18 lines
416 B
Ruby
18 lines
416 B
Ruby
# frozen_string_literal: true
|
|
|
|
# TODO: Remove this after the Discourse 3.5 release
|
|
module Sidekiq
|
|
def self.old_pool
|
|
@old_pool ||=
|
|
begin
|
|
ConnectionPool.new do
|
|
Redis::Namespace.new(
|
|
Discourse::SIDEKIQ_NAMESPACE,
|
|
redis:
|
|
Sidekiq::RedisClientAdapter.new(Discourse.sidekiq_redis_config(old: true)).new_client,
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|