From: Michael Date: Sat, 21 Dec 2019 18:11:51 +0000 (+0000) Subject: "CheckServer" is now "UpdateGServer" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=26ac9a0063dba3eeb1a20d4fe8648e20386bf364;p=friendica.git "CheckServer" is now "UpdateGServer" --- diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index d720910c5f..49da85e615 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -270,7 +270,7 @@ class PortableContact if (!DBA::isResult($r)) { Logger::log("Call server check for server ".$server_url, Logger::DEBUG); - Worker::add(PRIORITY_LOW, 'CheckServer', $server_url); + Worker::add(PRIORITY_LOW, 'UpdateGServer', $server_url); } } } @@ -295,7 +295,7 @@ class PortableContact if (!empty($servers['pods'])) { foreach ($servers['pods'] as $server) { - Worker::add(PRIORITY_LOW, 'CheckServer', 'https://' . $server['host']); + Worker::add(PRIORITY_LOW, 'UpdateGServer', 'https://' . $server['host']); } } } @@ -314,7 +314,7 @@ class PortableContact foreach ($servers['instances'] as $server) { $url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name']; - Worker::add(PRIORITY_LOW, 'CheckServer', $url); + Worker::add(PRIORITY_LOW, 'UpdateGServer', $url); } } } diff --git a/src/Worker/CheckServer.php b/src/Worker/CheckServer.php deleted file mode 100644 index ad78d7d255..0000000000 --- a/src/Worker/CheckServer.php +++ /dev/null @@ -1,28 +0,0 @@ - $server_url, 'result' => $ret]); - } -} diff --git a/src/Worker/UpdateGServer.php b/src/Worker/UpdateGServer.php new file mode 100644 index 0000000000..2e017422fe --- /dev/null +++ b/src/Worker/UpdateGServer.php @@ -0,0 +1,28 @@ + $server_url, 'result' => $ret]); + } +} diff --git a/src/Worker/UpdateServers.php b/src/Worker/UpdateServers.php index d3ce3fca77..d1cc04209a 100644 --- a/src/Worker/UpdateServers.php +++ b/src/Worker/UpdateServers.php @@ -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;