Skip to content

Commit 3fba9b0

Browse files
committed
Add private_class_method definition to several cluster modules
1 parent a94a5fd commit 3fba9b0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

lib/redis/cluster/command_loader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def fetch_command_details(node)
2727
rescue CannotConnectError, ConnectionError, CommandError
2828
{} # can retry on another node
2929
end
30+
31+
private_class_method :fetch_command_details
3032
end
3133
end
3234
end

lib/redis/cluster/node_loader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def fetch_node_info(node)
3030
rescue CannotConnectError, ConnectionError, CommandError
3131
{} # can retry on another node
3232
end
33+
34+
private_class_method :fetch_node_info
3335
end
3436
end
3537
end

lib/redis/cluster/slot_loader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def stringify_node_key(arr, default_ip)
4242
ip = default_ip if ip.empty? # When cluster is down
4343
NodeKey.build_from_host_port(ip, port)
4444
end
45+
46+
private_class_method :fetch_slot_info, :parse_slot_info, :stringify_node_key
4547
end
4648
end
4749
end

0 commit comments

Comments
 (0)