Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…gain #epicfail)
  • Loading branch information...
commit e7f0d6159e86936b252a5d727e49bbc8fd8c4521 1 parent b790463
@libc libc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/em-redis/redis_protocol.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.