Sha256: da18fab1d39415fe4ee665f2a70763a0a49ee821c67176cf7df227e3cd39b709

Contents?: true

Size: 347 Bytes

Versions: 24

Compression:

Stored size: 347 Bytes

Contents

# -*- encoding: binary -*-
# :stopdoc:
module Rainbows::PoolSize
  DEFAULTS = {
    :pool_size => 50, # same as the default worker_connections
  }

  def setup
    o = Rainbows::O
    DEFAULTS.each { |k,v| o[k] ||= v }
    Integer === o[:pool_size] && o[:pool_size] > 0 or
      raise ArgumentError, "pool_size must a be an Integer > 0"
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rainbows-4.1.0 lib/rainbows/pool_size.rb
rainbows-4.0.0 lib/rainbows/pool_size.rb
rainbows-3.4.0 lib/rainbows/pool_size.rb
rainbows-3.3.0 lib/rainbows/pool_size.rb