lib/celluloid/pool_manager.rb in celluloid-0.15.2 vs lib/celluloid/pool_manager.rb in celluloid-0.16.0.pre

- old
+ new

@@ -8,10 +8,10 @@ include Celluloid trap_exit :__crash_handler__ finalizer :__shutdown__ def initialize(worker_class, options = {}) - @size = options[:size] || [Celluloid.cores, 2].max + @size = options[:size] || [Celluloid.cores || 2, 2].max raise ArgumentError, "minimum pool size is 2" if @size < 2 @worker_class = worker_class @args = options[:args] ? Array(options[:args]) : []