diff options
Diffstat (limited to 'lib/rainbows/fiber_pool.rb')
-rw-r--r-- | lib/rainbows/fiber_pool.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/fiber_pool.rb b/lib/rainbows/fiber_pool.rb index 42f6dbe..63f1e2e 100644 --- a/lib/rainbows/fiber_pool.rb +++ b/lib/rainbows/fiber_pool.rb @@ -15,6 +15,7 @@ module Rainbows module FiberPool include Fiber::Base + include Rainbows::Acceptor def worker_loop(worker) # :nodoc: init_worker_process(worker) @@ -29,7 +30,7 @@ module Rainbows begin schedule do |l| fib = pool.shift or break # let another worker process take it - if io = Rainbows.accept(l) + if io = accept(l) fib.resume(Fiber::IO.new(io, fib)) else pool << fib |