"CheckServer" is now "UpdateGServer"

This commit is contained in:
Michael 2019-12-21 18:11:51 +00:00
parent 598f314577
commit 26ac9a0063
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* @file src/Worker/CheckServer.php
* @file src/Worker/UpdateGServer.php
*/
namespace Friendica\Worker;
@ -8,7 +8,7 @@ use Friendica\Core\Logger;
use Friendica\Model\GServer;
use Friendica\Util\Strings;
class CheckServer
class UpdateGServer
{
// Searches for the poco server list.
public static function execute($server_url)
@ -23,6 +23,6 @@ class CheckServer
}
$ret = GServer::check($server_url);
Logger::info('Checked server', ['url' => $server_url, 'result' => $ret]);
Logger::info('Updated gserver', ['url' => $server_url, 'result' => $ret]);
}
}

View file

@ -30,7 +30,7 @@ class UpdateServers
}
Logger::info('Update server status', ['server' => $gserver['url']]);
Worker::add(PRIORITY_LOW, 'CheckServer', $gserver['url']);
Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['url']);
if (++$updated > 250) {
return;