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-5.2.1 lib/rainbows/pool_size.rb
rainbows-5.2.0 lib/rainbows/pool_size.rb
rainbows-5.1.1 lib/rainbows/pool_size.rb
rainbows-5.1.0 lib/rainbows/pool_size.rb
rainbows-5.0.0.5.ge717 lib/rainbows/pool_size.rb
rainbows-5.0.0 lib/rainbows/pool_size.rb
rainbows-4.7.0 lib/rainbows/pool_size.rb
rainbows-4.6.2 lib/rainbows/pool_size.rb
rainbows-4.6.1 lib/rainbows/pool_size.rb
rainbows-4.6.0.4.g4108 lib/rainbows/pool_size.rb
rainbows-4.6.0 lib/rainbows/pool_size.rb
rainbows-4.5.0 lib/rainbows/pool_size.rb
rainbows-4.4.3 lib/rainbows/pool_size.rb
rainbows-4.4.2 lib/rainbows/pool_size.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/pool_size.rb
rainbows-4.4.1 lib/rainbows/pool_size.rb
rainbows-4.4.0 lib/rainbows/pool_size.rb
rainbows-4.3.1 lib/rainbows/pool_size.rb
rainbows-4.3.0 lib/rainbows/pool_size.rb
rainbows-4.2.0 lib/rainbows/pool_size.rb