Skip to content

Commit 466ccdf

Browse files
committed
We still officially support 1.8.7.
1 parent bfc221c commit 466ccdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redis/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def sentinel_detect
518518
def resolve_master
519519
sentinel_detect do |client|
520520
if reply = client.call(["sentinel", "get-master-addr-by-name", @master])
521-
{host: reply[0], port: reply[1]}
521+
{:host => reply[0], :port => reply[1]}
522522
end
523523
end
524524
end
@@ -528,7 +528,7 @@ def resolve_slave
528528
if reply = client.call(["sentinel", "slaves", @master])
529529
slave = Hash[*reply.sample]
530530

531-
{host: slave.fetch("ip"), port: slave.fetch("port")}
531+
{:host => slave.fetch("ip"), :port => slave.fetch("port")}
532532
end
533533
end
534534
end

0 commit comments

Comments
 (0)