diff options
-rw-r--r-- | lib/rainbows/http_server.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index a1ec4f6..c26285c 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -53,13 +53,7 @@ module Rainbows raise ArgumentError, "concurrency model #{model.inspect} not supported" extend(mod) Const::RACK_DEFAULTS['rainbows.model'] = @use = model.to_sym - - if /Thread/ =~ model.to_s - Const::RACK_DEFAULTS['rack.multithread'] = true - # autoload/require is not thread-safe - Unicorn.constants.each { |x| Unicorn.const_get(x) } - end - + Const::RACK_DEFAULTS['rack.multithread'] = !!(/Thread/ =~ model.to_s) case @use when :Rev, :EventMachine Const::RACK_DEFAULTS['rainbows.autochunk'] = true |