X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FHashRing.php;h=be40965e8414a651880f58ffe37ae75fdc3d4dbe;hp=a4aabcd3fe50fc07e2dc26e0e8e41798387a46ca;hb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;hpb=7471e1db1b613d035f981f489f8683a177acff7e diff --git a/includes/libs/HashRing.php b/includes/libs/HashRing.php index a4aabcd3fe..be40965e84 100644 --- a/includes/libs/HashRing.php +++ b/includes/libs/HashRing.php @@ -35,7 +35,7 @@ class HashRing { protected $liveRing; /** @var Array (location => UNIX timestamp) */ protected $ejectionExpiries = []; - /** @var integer UNIX timestamp */ + /** @var int UNIX timestamp */ protected $ejectionNextExpiry = INF; const RING_SIZE = 268435456; // 2^28 @@ -93,7 +93,7 @@ class HashRing { * Get the location of an item on the ring, as well as the next locations * * @param string $item - * @param integer $limit Maximum number of locations to return + * @param int $limit Maximum number of locations to return * @return array List of locations */ public function getLocations( $item, $limit ) { @@ -152,7 +152,7 @@ class HashRing { * Remove a location from the "live" hash ring * * @param string $location - * @param integer $ttl Seconds + * @param int $ttl Seconds * @return bool Whether some non-ejected locations are left */ public function ejectFromLiveRing( $location, $ttl ) { @@ -218,7 +218,7 @@ class HashRing { * Get the location of an item on the "live" ring, as well as the next locations * * @param string $item - * @param integer $limit Maximum number of locations to return + * @param int $limit Maximum number of locations to return * @return array List of locations * @throws UnexpectedValueException */