From 537da657cca1460462f91d788857276e1c21a16d Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Dec 2019 18:57:00 +0000 Subject: [PATCH] Renamed functions --- src/Worker/Cron.php | 8 ++++---- src/Worker/{DiscoverContacts.php => UpdateGContacts.php} | 4 ++-- src/Worker/{UpdateServers.php => UpdateGServers.php} | 4 ++-- .../{DiscoverPoCo.php => UpdateServerDirectories.php} | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) rename src/Worker/{DiscoverContacts.php => UpdateGContacts.php} (97%) rename src/Worker/{UpdateServers.php => UpdateGServers.php} (92%) rename src/Worker/{DiscoverPoCo.php => UpdateServerDirectories.php} (88%) diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 356be46e4..6928cb8d7 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -38,11 +38,11 @@ class Cron // Fork the cron jobs in separate parts to avoid problems when one of them is crashing Hook::fork($a->queue['priority'], "cron"); - // run the process to discover global contacts in the background - Worker::add(PRIORITY_LOW, "DiscoverPoCo"); + // run the process to update server directories in the background + Worker::add(PRIORITY_LOW, 'UpdateServerDirectories'); // run the process to update locally stored global contacts in the background - Worker::add(PRIORITY_LOW, 'DiscoverContacts'); + Worker::add(PRIORITY_LOW, 'UpdateGContacts'); // Expire and remove user entries Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users"); @@ -73,7 +73,7 @@ class Cron // update nodeinfo data Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo"); - Worker::add(PRIORITY_LOW, 'UpdateServers'); + Worker::add(PRIORITY_LOW, 'UpdateGServers'); Worker::add(PRIORITY_LOW, 'UpdateSuggestions'); diff --git a/src/Worker/DiscoverContacts.php b/src/Worker/UpdateGContacts.php similarity index 97% rename from src/Worker/DiscoverContacts.php rename to src/Worker/UpdateGContacts.php index 7af170b3b..64ffb2a50 100644 --- a/src/Worker/DiscoverContacts.php +++ b/src/Worker/UpdateGContacts.php @@ -1,6 +1,6 @@