lib/rainbows/coolio_fiber_spawn.rb in rainbows-3.4.0 vs lib/rainbows/coolio_fiber_spawn.rb in rainbows-4.0.0
- old
+ new
@@ -16,10 +16,10 @@
include Rainbows::Base
include Rainbows::Fiber::Coolio
def worker_loop(worker) # :nodoc:
- Rainbows::Response.setup(Server)
+ Rainbows::Response.setup
init_worker_process(worker)
Server.const_set(:MAX, @worker_connections)
Rainbows::Fiber::Base.setup(Server, nil)
Server.const_set(:APP, Rainbows.server.app)
Heartbeat.new(1, true).attach(Coolio::Loop.default)