diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-08 07:26:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-08 07:26:55 +0000 |
commit | ec3f871c9a34734b865365a43979a0b459654b05 (patch) | |
tree | e40fdaef70e5920984e86b76eba0cd37a3bffe6d /lib/rainbows/xepoll_thread_spawn/client.rb | |
parent | e64e2e0045d63c4edd291839febba978534be652 (diff) | |
download | rainbows-ec3f871c9a34734b865365a43979a0b459654b05.tar.gz |
We only poll for one event (EPOLLIN/EPOLLOUT) at a time, so there's no need to actually check since they're too rare.
Diffstat (limited to 'lib/rainbows/xepoll_thread_spawn/client.rb')
-rw-r--r-- | lib/rainbows/xepoll_thread_spawn/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 72031eb..118836b 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -43,7 +43,7 @@ module Rainbows::XEpollThreadSpawn::Client def self.loop buf = "" begin - EP.wait(nil, 1000) { |fl, obj| obj.epoll_run(buf) } + EP.wait(nil, 1000) { |_, obj| obj.epoll_run(buf) } expire rescue Errno::EINTR rescue => e |