about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-15 10:14:22 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-15 10:14:22 -0800
commit7f186515f214347bf5e146ce8d16a38f32f9cdfb (patch)
treea30a2a1fea73af771925ef4370bdee05a7d7a3b5 /lib
parent489d08233b2ec43353e25f857e3639751f4f529b (diff)
downloadraindrops-7f186515f214347bf5e146ce8d16a38f32f9cdfb.tar.gz
It's a needless allocation
Diffstat (limited to 'lib')
-rw-r--r--lib/raindrops/middleware.rb4
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)