Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.rb « action_cable « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38e870353ebf6baa14bbba82e37b902ac6ecbae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module ActionCable
    class Config
      class << self
        def in_app?
          Gitlab::Utils.to_boolean(ENV.fetch('ACTION_CABLE_IN_APP', false))
        end

        def worker_pool_size
          ENV.fetch('ACTION_CABLE_WORKER_POOL_SIZE', 4).to_i
        end
      end
    end
  end
end