浏览代码

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

Daniele Alessandri 16 年之前
父节点
当前提交
177120e1a2
共有 1 个文件被更改,包括 2 次插入2 次删除
  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) {
-        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));
     }