Skip to content

Commit b362cf2

Browse files
Merge #622
622: Custom reconnect_attempts to Fixnum r=badboy string won't be expected at https://github.com/redis/redis-rb/blob/master/lib/redis/client.rb#L371.
2 parents 81e4190 + 1f1850a commit b362cf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/redis/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ def _parse_options(options)
444444
options[:read_timeout] = Float(options[:read_timeout])
445445
options[:write_timeout] = Float(options[:write_timeout])
446446

447+
options[:reconnect_attempts] = options[:reconnect_attempts].to_i
448+
447449
options[:db] = options[:db].to_i
448450
options[:driver] = _parse_driver(options[:driver]) || Connection.drivers.last
449451

0 commit comments

Comments
 (0)