diff options
author | Eric Wong <e@80x24.org> | 2014-05-09 00:51:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-05-09 01:39:59 +0000 |
commit | 0c78a8bf48dfb6fc260bfee03fecd394e399edb1 (patch) | |
tree | ed7fe9cdc46c2b984c60718895df967f3a82b61b /lib | |
parent | 9c52c2a0daf9a182a4816ea0b51a18e6e1db4fd0 (diff) | |
download | yahns-0c78a8bf48dfb6fc260bfee03fecd394e399edb1.tar.gz |
server_mp: (style) favor &:proc method binding
We do this for conciseness.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/yahns/server_mp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/server_mp.rb b/lib/yahns/server_mp.rb index d8990ca..5c9aaa1 100644 --- a/lib/yahns/server_mp.rb +++ b/lib/yahns/server_mp.rb @@ -157,7 +157,7 @@ module Yahns::ServerMP # :nodoc: # not performance critical watch.delete_if { |io| io.to_io.closed? } if r = IO.select(watch, nil, nil, alive ? nil : 0.01) - r[0].each { |io| io.yahns_step } + r[0].each(&:yahns_step) end case @sig_queue.shift when *EXIT_SIGS |