소스 검색

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