mirror of
https://github.com/predis/predis.git
synced 2026-09-01 05:03:28 +00:00
Clustered connections should use IConnectionSingle::executeCommand() to execute commands internally.
This commit is contained in:
@@ -73,8 +73,6 @@ class ConnectionCluster implements IConnectionCluster, \IteratorAggregate {
|
||||
}
|
||||
|
||||
public function executeCommand(ICommand $command) {
|
||||
$connection = $this->getConnection($command);
|
||||
$connection->writeCommand($command);
|
||||
return $connection->readResponse($command);
|
||||
return $this->getConnection($command)->executeCommand($command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user