Skip to content

Commit 1ea2f5d

Browse files
committed
Sentinel: Default role to "master" when not specified [#488]
1 parent fe39c55 commit 1ea2f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def initialize(options)
477477
super(options)
478478

479479
@sentinels = options.fetch(:sentinels).dup
480-
@role = options[:role].to_s
480+
@role = options.fetch(:role, "master").to_s
481481
@master = options[:host]
482482
end
483483

0 commit comments

Comments
 (0)