Explorar o código

Clustered connections should use IConnectionSingle::executeCommand() to execute commands internally.

Daniele Alessandri %!s(int64=14) %!d(string=hai) anos
pai
achega
3681c1e622
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      lib/Predis/Network/ConnectionCluster.php

+ 1 - 3
lib/Predis/Network/ConnectionCluster.php

@@ -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);
     }
 }