diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-15 10:14:22 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-15 10:14:22 -0800 |
commit | 7f186515f214347bf5e146ce8d16a38f32f9cdfb (patch) | |
tree | a30a2a1fea73af771925ef4370bdee05a7d7a3b5 /lib/raindrops/middleware.rb | |
parent | 489d08233b2ec43353e25f857e3639751f4f529b (diff) | |
download | raindrops-7f186515f214347bf5e146ce8d16a38f32f9cdfb.tar.gz |
It's a needless allocation
Diffstat (limited to 'lib/raindrops/middleware.rb')
-rw-r--r-- | lib/raindrops/middleware.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb index 8ddac1f..2eb4e66 100644 --- a/lib/raindrops/middleware.rb +++ b/lib/raindrops/middleware.rb @@ -42,8 +42,8 @@ class Raindrops::Middleware < Struct.new(:app, :stats, :path, :tcp, :unix) end # yield to the Rack server here for writing - def each(&block) - app.each(&block) + def each + app.each { |x| yield x } end # the Rack server should call this after #each (usually ensure-d) |