فهرست منبع

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

Daniele Alessandri 15 سال پیش
والد
کامیت
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));
     }