lib/alephant/publisher.rb in alephant-publisher-0.1.5 vs lib/alephant/publisher.rb in alephant-publisher-0.1.6

- old
+ new

@@ -53,12 +53,12 @@ :lookup_table_name ].include? k end @executor = ThreadPoolExecutor.new( - @opts[:renderer_pool_min_size] || POOL_MIN_SIZE, - @opts[:renderer_pool_max_size] || POOL_MAX_SIZE, - @opts[:render_keep_alive_time] || KEEP_ALIVE_TIMEOUT, + @opts.fetch(:renderer_pool_min_size, POOL_MIN_SIZE).to_i, + @opts.fetch(:renderer_pool_max_size, POOL_MAX_SIZE).to_i, + @opts.fetch(:render_keep_alive_time, KEEP_ALIVE_TIMEOUT).to_i, TimeUnit::SECONDS, LinkedBlockingQueue.new ) end