about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-18 06:41:58 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-18 07:44:55 +0000
commited9f3e90939cfa9efcc6e5e9382f1e1f40c49834 (patch)
tree32cda6265c16975daebe3c1f0c1430c622e2f608 /lib/rainbows/http_server.rb
parent0e4014888f4f7f17d45c96677d672a538c6e6d94 (diff)
downloadrainbows-ed9f3e90939cfa9efcc6e5e9382f1e1f40c49834.tar.gz
Array#[] lookups are slightly faster under both rbx and 1.9,
and easier to read.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index 3a30915..43604af 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -68,7 +68,7 @@ module Rainbows
 
     def worker_connections(*args)
       return @worker_connections if args.empty?
-      nr = args.first
+      nr = args[0]
       (Integer === nr && nr > 0) or
         raise ArgumentError, "worker_connections must be a positive Integer"
       @worker_connections = nr