Skip to content

Commit b9a35ac

Browse files
committed
Use :read_timeout instead of :timeout for read timeout
1 parent 06665e6 commit b9a35ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/connection/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def self.connect(config)
314314
end
315315

316316
instance = new(sock)
317-
instance.timeout = config[:timeout]
317+
instance.timeout = config[:read_timeout]
318318
instance.write_timeout = config[:write_timeout]
319319
instance.set_tcp_keepalive config[:tcp_keepalive]
320320
instance

0 commit comments

Comments
 (0)