diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-06 01:42:31 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-06 01:42:31 +0000 |
commit | 44eb53f5a5f1ea2e5aee93d0caf995f42b3179f7 (patch) | |
tree | 4bb6d0e028d1b63b515f2ded3451020d82d9a51e /lib/rainbows/reverse_proxy/ev_client.rb | |
parent | 90a86c9822238f01e8d60c9303b9a0da64351c7f (diff) | |
download | rainbows-44eb53f5a5f1ea2e5aee93d0caf995f42b3179f7.tar.gz |
kill some unnecessary &block usage
We were needlessly allocating objects even when using yield.
Diffstat (limited to 'lib/rainbows/reverse_proxy/ev_client.rb')
-rw-r--r-- | lib/rainbows/reverse_proxy/ev_client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/reverse_proxy/ev_client.rb b/lib/rainbows/reverse_proxy/ev_client.rb index 94e7f82..cf97c4d 100644 --- a/lib/rainbows/reverse_proxy/ev_client.rb +++ b/lib/rainbows/reverse_proxy/ev_client.rb @@ -26,7 +26,7 @@ module Rainbows::ReverseProxy::EvClient end class LargeBody < Tempfile - def each(&block) + def each buf = "" rewind while read(16384, buf) |