Skip to content

Commit 8d5a37f

Browse files
committed
perf: avoid unnecessary connections for CLUSTER SHARDS when auto pipelining is disabled
Signed-off-by: Rueian <[email protected]>
1 parent 5250697 commit 8d5a37f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cmds/cmds.go

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var (
3939
// RoleCmd is predefined ROLE
4040
RoleCmd = Completed{
4141
cs: newCommandSlice([]string{"ROLE"}),
42+
cf: pipeTag,
4243
}
4344

4445
// UnsubscribeCmd is predefined UNSUBSCRIBE
@@ -63,10 +64,12 @@ var (
6364
// SlotCmd is predefined CLUSTER SLOTS
6465
SlotCmd = Completed{
6566
cs: newCommandSlice([]string{"CLUSTER", "SLOTS"}),
67+
cf: pipeTag,
6668
}
6769
// ShardsCmd is predefined CLUSTER SHARDS
6870
ShardsCmd = Completed{
6971
cs: newCommandSlice([]string{"CLUSTER", "SHARDS"}),
72+
cf: pipeTag,
7073
}
7174
// AskingCmd is predefined CLUSTER ASKING
7275
AskingCmd = Completed{

0 commit comments

Comments
 (0)