From f33277a0954473d0eb5f1a7b63ec232b82f3399d Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Sun, 22 Feb 2026 18:32:51 -0800 Subject: [PATCH] update way faster --- server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.ts b/server.ts index c5cbe5c..e679dd3 100644 --- a/server.ts +++ b/server.ts @@ -98,6 +98,10 @@ const FOSSABOT_VALIDATE_TIMEOUT_MS = parsePositiveInt( process.env.FOSSABOT_VALIDATE_TIMEOUT_MS, 1_500, ); +const VIEWER_VOTE_BROADCAST_DEBOUNCE_MS = parsePositiveInt( + process.env.VIEWER_VOTE_BROADCAST_DEBOUNCE_MS, + 250, +); const ADMIN_COOKIE = "quipslop_admin"; const ADMIN_COOKIE_MAX_AGE_SECONDS = 60 * 60 * 24 * 30; @@ -337,7 +341,7 @@ function scheduleViewerVoteBroadcast() { viewerVoteBroadcastTimer = setTimeout(() => { viewerVoteBroadcastTimer = null; broadcast(); - }, 5_000); + }, VIEWER_VOTE_BROADCAST_DEBOUNCE_MS); } function getClientState() {