Remove discovered relays auto-refresh interval — fetch only on manual expand click to prevent worker message queue starvation

This commit is contained in:
Laan Tungir
2026-06-26 10:08:13 -04:00
parent b11161862a
commit 9d9d0f88f5
2 changed files with 5 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
{
"VERSION": "v0.7.44",
"VERSION_NUMBER": "0.7.44",
"BUILD_DATE": "2026-06-26T13:54:18.538Z"
"VERSION": "v0.7.45",
"VERSION_NUMBER": "0.7.45",
"BUILD_DATE": "2026-06-26T14:08:13.927Z"
}

View File

@@ -1586,14 +1586,8 @@ const versionInfo = await getVersion();
// Refresh relay table every 5 seconds
setInterval(refreshRelayData, 5000);
// Refresh discovered relays (outbox) on a slower 15s interval,
// and only when the section is expanded, to avoid blocking the
// worker's message queue with LRU cache iteration on every 5s cycle.
setInterval(() => {
if (discoveredRelaysExpanded) {
void refreshDiscoveredRelays();
}
}, 15000);
// Discovered relays are fetched only on manual expand click — no
// auto-refresh interval, to avoid blocking the worker's message queue.
// Sync connection history toggle state from localStorage
connectionHistoryEnabled = localStorage.getItem('relayConnectionHistory') === 'true';