Browse Source

The private method computeHash of ConnectionCluster is now a static method.

Daniele Alessandri 15 years ago
parent
commit
177120e1a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Predis.php

+ 2 - 2
lib/Predis.php

@@ -761,10 +761,10 @@ class ConnectionCluster implements IConnection, \IteratorAggregate {
     }
     }
 
 
     private function getConnectionFromRing(Command $command) {
     private function getConnectionFromRing(Command $command) {
-        return $this->_ring->get($this->computeHash($command));
+        return $this->_ring->get(self::computeHash($command));
     }
     }
 
 
-    private function computeHash(Command $command) {
+    private static function computeHash(Command $command) {
         return crc32($command->getArgument(0));
         return crc32($command->getArgument(0));
     }
     }