From aff2a403d7f4dda9be39e0d69c39cd8b2deddf5a Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Tue, 31 Mar 2026 23:42:31 +0200 Subject: [PATCH] fix(federation): reduce outbox worker interval from 10s to 1s for lower relay latency --- packages/server/src/utils/federationWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/federationWorker.ts b/packages/server/src/utils/federationWorker.ts index ae350cdf..8e0943aa 100644 --- a/packages/server/src/utils/federationWorker.ts +++ b/packages/server/src/utils/federationWorker.ts @@ -19,7 +19,7 @@ import { Readable } from 'node:stream'; // ─── Constants ────────────────────────────────────────────────────────────── -const OUTBOX_INTERVAL_MS = 10_000; // 10 seconds +const OUTBOX_INTERVAL_MS = 1_000; // 1 second (idle polls are no-ops) const FILE_QUEUE_INTERVAL_MS = 30_000; // 30 seconds const HEALTH_CHECK_INTERVAL_MS = 3_600_000; // 1 hour const JANITOR_INTERVAL_MS = 3_600_000; // 1 hour