Node.js based forum software built for the modern web
chore: remove extraneous logging
Julian Lam8169094fa2a5
diff --git a/src/activitypub/send.js b/src/activitypub/send.jsindex 25a7c98ef3..bf5841f43b 100644--- a/src/activitypub/send.js+++ b/src/activitypub/send.js@@ -7,10 +7,6 @@ const workerpool = require('workerpool');const db = require('../database');-// ----------------------------------------------------------------------------// Worker pool — managed by workerpool-// ----------------------------------------------------------------------------const SendPool = {_activityPub: null,};@@ -37,10 +33,6 @@ SendPool.init = function (activityPub) {}};-// ----------------------------------------------------------------------------// Result handler — called after worker completes a task-// ----------------------------------------------------------------------------SendPool.handleResult = function (queueId, result) {if (result.success) {// Success — fire analytics and remove from Redis@@ -63,10 +55,6 @@ SendPool.handleResult = function (queueId, result) {}};-// ----------------------------------------------------------------------------// Retry queue — exponential backoff into Redis-// ----------------------------------------------------------------------------SendPool.requeueTask = function (task) {const oneMinute = 1000 * 60;const maxDelay = 60 * 60 * 1000; // 1 hour@@ -100,10 +88,6 @@ SendPool.requeueTask = function (task) {db.setObjectBulk(retryQueuedSet);};-// ----------------------------------------------------------------------------// Dispatch — send task to workerpool-// ----------------------------------------------------------------------------SendPool.dispatch = function (task) {// workerpool handles queuing automatically when all workers are busy.// The 30s timeout on exec kills the worker and rejects the promise,@@ -120,10 +104,6 @@ SendPool.dispatch = function (task) {.catch(e => ({ success: false, error: e.message }));};-// ----------------------------------------------------------------------------// Drain loop — fetch due tasks from Redis and dispatch-// ----------------------------------------------------------------------------SendPool.drainLoop = async function () {if (SendPool._draining) {return;@@ -246,10 +226,6 @@ SendPool.drainLoop = async function () {}};-// ----------------------------------------------------------------------------// Shutdown — graceful termination with force-fallback-// ----------------------------------------------------------------------------SendPool.shutdown = function () {SendPool._draining = false;