about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows/http_server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 02f3405..4e1d7d9 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -11,7 +11,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
     @logger = Unicorn::Configurator::DEFAULTS[:logger]
     super(app, options)
     defined?(@use) or use(:Base)
-    @worker_connections ||= Rainbows::MODEL_WORKER_CONNECTIONS[@use]
+    @worker_connections ||= @use == :Base ? 1 : 50
   end
 
   def reopen_worker_logs(worker_nr)
@@ -38,7 +38,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
     Rainbows.max_bytes = 1024 * 1024
     @worker_connections = nil
     super
-    @worker_connections ||= Rainbows::MODEL_WORKER_CONNECTIONS[@use]
+    @worker_connections ||= @use == :Base ? 1 : 50
   end
 
   def worker_loop(worker)