small unit test refactoring, comment wording

This commit is contained in:
El RIDO 2022-02-20 09:30:41 +01:00
parent 91041d8c59
commit 190a35a53b
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
2 changed files with 8 additions and 3 deletions

View file

@ -161,7 +161,7 @@ class TrafficLimiter extends AbstractPersistence
}
}
// this hash is used as an array key, hence a shorter algo is used
// used as array key, which are limited in length, hence using algo with shorter range
$hash = self::getHash('sha256');
$now = time();
$tl = (int) self::$_store->getValue('traffic_limiter', $hash);