From 7ad4e300c29b06fd53aca9f9bad18f97f9a34633 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Jan 2011 20:32:24 +0000 Subject: ev_core: simplify setup steps ev_core is always loaded after forking, so eliminate the need for extra setup steps for each concurrency model that uses it --- lib/rainbows/event_machine.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/rainbows/event_machine.rb') diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 990a186..c78a406 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -48,11 +48,6 @@ module Rainbows::EventMachine include Rainbows::Base - def init_worker_process(worker) # :nodoc: - Rainbows::Response.setup(Rainbows::EventMachine::Client) - super - end - # runs inside each forked worker, this sits around and waits # for connections and doesn't die until the parent dies (or is # given a INT, QUIT, or TERM signal) @@ -71,7 +66,6 @@ module Rainbows::EventMachine Rainbows::EventMachine::Server.const_set(:MAX, max) Rainbows::EventMachine::Server.const_set(:CL, client_class) client_class.const_set(:APP, Rainbows.server.app) - Rainbows::EvCore.setup EM.run { conns = EM.instance_variable_get(:@conns) or raise RuntimeError, "EM @conns instance variable not accessible!" -- cgit v1.2.3-24-ge0c7