diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-20 04:32:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-20 05:14:58 +0000 |
commit | afb7e51363c646751be1a12083c1c7b184e3fd47 (patch) | |
tree | 881dc5d8008f3d55fee0a5768db566ca005d738a /lib | |
parent | 9c8372c3a4972cacf0eb15ad85d34cb33293672e (diff) | |
download | rainbows-afb7e51363c646751be1a12083c1c7b184e3fd47.tar.gz |
Its conceivable that we can avoid loading TeeInput for EventMachine and Rev concurrency models in the future since it's unused there.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows.rb | 4 | ||||
-rw-r--r-- | lib/rainbows/base.rb | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb index d0b3e8a..1a3d6ff 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -34,8 +34,8 @@ module Rainbows require 'rainbows/const' require 'rainbows/http_server' require 'rainbows/response' - require 'rainbows/base' - require 'rainbows/tee_input' + autoload :Base, 'rainbows/base' + autoload :TeeInput, 'rainbows/tee_input' autoload :Sendfile, 'rainbows/sendfile' autoload :AppPool, 'rainbows/app_pool' autoload :DevFdResponse, 'rainbows/dev_fd_response' diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index d9f46f7..180c80c 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -1,5 +1,4 @@ # -*- encoding: binary -*- -require 'rainbows/tee_input' # base class for Rainbows concurrency models, this is currently used by # ThreadSpawn and ThreadPool models. Base is also its own |