X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FHashRing.php;h=a4aabcd3fe50fc07e2dc26e0e8e41798387a46ca;hb=1abc89fc7651e122ca53fe874eecb89f30b5ba35;hp=70ce31d713dd2b7bd518f303cce32a761c4b45e7;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/HashRing.php b/includes/libs/HashRing.php index 70ce31d713..a4aabcd3fe 100644 --- a/includes/libs/HashRing.php +++ b/includes/libs/HashRing.php @@ -18,7 +18,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @author Aaron Schulz */ /** @@ -32,7 +31,7 @@ class HashRing { /** @var Array (location => (start, end)) */ protected $ring = []; - /** @var Array (location => (start, end)) */ + /** @var HashRing|null */ protected $liveRing; /** @var Array (location => UNIX timestamp) */ protected $ejectionExpiries = []; @@ -179,7 +178,7 @@ class HashRing { if ( $this->liveRing === null || $this->ejectionNextExpiry <= $now ) { $this->ejectionExpiries = array_filter( $this->ejectionExpiries, - function( $expiry ) use ( $now ) { + function ( $expiry ) use ( $now ) { return ( $expiry > $now ); } );