Skip to content

Commit fe6686d

Browse files
authoredJan 29, 2024
SentinelsClient: Use the given protocol to connect to sentinels
1 parent f11a366 commit fe6686d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/async/redis/sentinels.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def resolve_address
4444

4545
def resolve_master
4646
@sentinel_endpoints.each do |sentinel_endpoint|
47-
client = Client.new(sentinel_endpoint)
47+
client = Client.new(sentinel_endpoint, protocol: @protocol)
4848

4949
begin
5050
address = client.call('sentinel', 'get-master-addr-by-name', @master_name)
@@ -60,7 +60,7 @@ def resolve_master
6060

6161
def resolve_slave
6262
@sentinel_endpoints.each do |sentinel_endpoint|
63-
client = Client.new(sentinel_endpoint)
63+
client = Client.new(sentinel_endpoint, protocol: @protocol)
6464

6565
begin
6666
reply = client.call('sentinel', 'slaves', @master_name)

0 commit comments

Comments
 (0)