]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerPeers.php
Merge remote-tracking branch 'upstream/2022.09-rc' into cooldown
[friendica.git] / src / Worker / UpdateServerPeers.php
index 98ae88a97b5be8acded06a0dc1a0f040ecfc4a10..8c916504eddd75b1c80302de2c37d9c8f9384e11 100644 (file)
@@ -32,7 +32,9 @@ class UpdateServerPeers
 {
        /**
         * Query the given server for their known peers
+        *
         * @param string $gserver Server URL
+        * @return void
         */
        public static function execute(string $url)
        {
@@ -61,6 +63,7 @@ class UpdateServerPeers
                        // This endpoint doesn't offer the schema. So we assume that it is HTTPS.
                        GServer::add('https://' . $peer);
                        ++$added;
+                       Worker::coolDown();
                }
                Logger::info('Server peer update ended', ['total' => $total, 'added' => $added, 'url' => $url]);
        }