Permalink
Browse files

Fix self.connect arguments parsing when 2 arguments are specified (#a…

…gain #epicfail)
  • Loading branch information...
1 parent b790463 commit e7f0d6159e86936b252a5d727e49bbc8fd8c4521 @libc libc committed Feb 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/em-redis/redis_protocol.rb
@@ -302,7 +302,7 @@ def self.connect(*args)
else raise ArgumentError, 'first argument must be Hash or String'
end
when 2
- options = {:host => args[1], :port => args[2]}
+ options = {:host => args[0], :port => args[1]}
else
raise ArgumentError, "wrong number of arguments (#{args.length} for 1)"
end

0 comments on commit e7f0d61

Please sign in to comment.