Skip to content

Commit aa2033f

Browse files
authored
chore: fix naming (#141)
1 parent bc6debe commit aa2033f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/redis_client/cluster/command.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ class Cluster
99
class Command
1010
EMPTY_STRING = ''
1111

12-
RedisCommand = Struct.new('RedisCommand', :first_key_position, :write?, :readonly?, keyword_init: true)
12+
Detail = Struct.new(
13+
'RedisCommand',
14+
:first_key_position,
15+
:write?,
16+
:readonly?,
17+
keyword_init: true
18+
)
1319

1420
class << self
1521
def load(nodes)
@@ -36,7 +42,7 @@ def parse_command_reply(rows)
3642
rows&.reject { |row| row[0].nil? }.to_h do |row|
3743
[
3844
row[0].downcase,
39-
RedisCommand.new(
45+
::RedisClient::Cluster::Command::Detail.new(
4046
first_key_position: row[3],
4147
write?: row[2].include?('write'),
4248
readonly?: row[2].include?('readonly')

0 commit comments

Comments
 (0)