Skip to content

Commit ea3826f

Browse files
committed
Changed variable ref
1 parent e03f9e1 commit ea3826f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

redis/cluster.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,7 +2182,7 @@ def __init__(
21822182
self._execution_strategy: ExecutionStrategy = (
21832183
PipelineStrategy(self) if not transaction else TransactionStrategy(self)
21842184
)
2185-
self.command_stack = self._execution_strategy.command_queue
2185+
self.command_stack = self._execution_strategy._command_queue
21862186

21872187
def __repr__(self):
21882188
""" """
@@ -2603,25 +2603,25 @@ def __init__(
26032603
self,
26042604
pipe: ClusterPipeline,
26052605
):
2606-
self.command_queue: List[PipelineCommand] = []
2606+
self._command_queue: List[PipelineCommand] = []
26072607
self._pipe = pipe
26082608
self._nodes_manager = self._pipe.nodes_manager
26092609

26102610
@property
26112611
def command_queue(self):
2612-
return self.command_queue
2612+
return self._command_queue
26132613

26142614
@command_queue.setter
26152615
def command_queue(self, queue: List[PipelineCommand]):
2616-
self.command_queue = queue
2616+
self._command_queue = queue
26172617

26182618
@abstractmethod
26192619
def execute_command(self, *args, **kwargs):
26202620
pass
26212621

26222622
def pipeline_execute_command(self, *args, **options):
2623-
self.command_queue.append(
2624-
PipelineCommand(args, options, len(self.command_queue))
2623+
self._command_queue.append(
2624+
PipelineCommand(args, options, len(self._command_queue))
26252625
)
26262626
return self._pipe
26272627

0 commit comments

Comments
 (0)