diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-04 22:15:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-04 22:15:18 +0000 |
commit | 75f5aa9a0d6b37a94afbea3121fc2c16e70a2b1d (patch) | |
tree | e9a1a8233a3c4a39d17d235006c5e9de58c81c0b | |
parent | a5dc800d2e4b3a86466a03f45f64b97d29e4b11e (diff) | |
download | rainbows-75f5aa9a0d6b37a94afbea3121fc2c16e70a2b1d.tar.gz |
Avoid confusing people with an overloaded method name
-rw-r--r-- | lib/rainbows/rev/client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb index 888f8a9..8d3a9c9 100644 --- a/lib/rainbows/rev/client.rb +++ b/lib/rainbows/rev/client.rb @@ -81,14 +81,14 @@ module Rainbows end if IO.method_defined?(:sendfile_nonblock) - def sendfile(body) + def rev_sendfile(body) body.pos += @_io.sendfile_nonblock(body, body.pos, 0x10000) rescue Errno::EAGAIN ensure enable_write_watcher end else - def sendfile(body) + def rev_sendfile(body) write(body.sysread(CHUNK_SIZE)) end end @@ -100,7 +100,7 @@ module Rainbows begin begin - sendfile(body) + rev_sendfile(body) rescue EOFError # expected at file EOF @deferred_bodies.shift body.close |