Self-review

This commit is contained in:
binwiederhier
2026-01-18 10:51:36 -05:00
parent 856f150958
commit 6886ca24b1
2 changed files with 3 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ class Pruner {
clearTimeout(this.timer); clearTimeout(this.timer);
this.timer = null; this.timer = null;
} }
console.log("[VersionChecker] Stopped pruner checker"); console.log("[Pruner] Stopped worker");
} }
async prune() { async prune() {

View File

@@ -3,13 +3,12 @@
* or configuration changes, prompting users to refresh the page. * or configuration changes, prompting users to refresh the page.
*/ */
const CHECK_INTERVAL = 30 * 1000; // 5 * 60 * 1000; // 5 minutes const intervalMillis = 5 * 60 * 1000; // 5 minutes
class VersionChecker { class VersionChecker {
constructor() { constructor() {
this.initialConfigHash = null; this.initialConfigHash = null;
this.listener = null; this.listener = null;
console.log("XXXXXXxxxx set listener null");
this.timer = null; this.timer = null;
} }
@@ -21,7 +20,7 @@ class VersionChecker {
// Store initial config hash from the config loaded at page load // Store initial config hash from the config loaded at page load
this.initialConfigHash = window.config?.config_hash || ""; this.initialConfigHash = window.config?.config_hash || "";
console.log("[VersionChecker] Starting version checker"); console.log("[VersionChecker] Starting version checker");
this.timer = setInterval(() => this.checkVersion(), CHECK_INTERVAL); this.timer = setInterval(() => this.checkVersion(), intervalMillis);
} }
stopWorker() { stopWorker() {