mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix announce check ReAnnounce
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ $params = $_GET;
|
|||||||
unset($params['key']);
|
unset($params['key']);
|
||||||
$lockKey = md5(http_build_query($params));
|
$lockKey = md5(http_build_query($params));
|
||||||
$redis = $Cache->getRedis();
|
$redis = $Cache->getRedis();
|
||||||
if (!$redis->setnx($lockKey, $announce_wait, TIMENOW)) {
|
if (!$redis->set($lockKey, TIMENOW, ['nx', 'ex' => $announce_wait])) {
|
||||||
do_log('ReAnnounce');
|
do_log('ReAnnounce');
|
||||||
benc_resp($rep_dict);
|
benc_resp($rep_dict);
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user