about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-30 01:50:20 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-30 07:01:04 +0000
commite3b7523f3570d7ccf8d88fe4c3c854b677dc7e4f (patch)
tree4406cdead5b3c7ce0357c60e8febe257bc840a5b
parentc1588c5fb232d5425ceaa12258e7b8dd9f1d0cbe (diff)
downloadyahns-e3b7523f3570d7ccf8d88fe4c3c854b677dc7e4f.tar.gz
There were some old Ruby versions where there was a minor
difference, but they're identical from 1.9 onwards and this
has lower cognitive overhead.
-rw-r--r--lib/yahns/server_mp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/server_mp.rb b/lib/yahns/server_mp.rb
index be24152..551cf69 100644
--- a/lib/yahns/server_mp.rb
+++ b/lib/yahns/server_mp.rb
@@ -7,7 +7,7 @@ module Yahns::ServerMP # :nodoc:
   def maintain_worker_count
     (off = @workers.size - @worker_processes) == 0 and return
     off < 0 and return spawn_missing_workers
-    @workers.each_pair do |wpid, worker|
+    @workers.each do |wpid, worker|
       worker.nr >= @worker_processes and Process.kill(:QUIT, wpid)
     end
   end