mirror of
https://github.com/dergigi/boris.git
synced 2026-01-22 16:24:30 +01:00
perf: reduce relay status polling interval to 20 seconds
Change relay status polling from 5s (default) and 2s (Settings/Indicator) to 20s across the board to reduce CPU usage and network requests
This commit is contained in:
@@ -60,8 +60,8 @@ const Settings: React.FC<SettingsProps> = ({ settings, onSave, onClose, relayPoo
|
||||
const saveTimeoutRef = useRef<number | null>(null)
|
||||
const isLocallyUpdating = useRef(false)
|
||||
|
||||
// Poll more frequently in settings for responsive status updates
|
||||
const relayStatuses = useRelayStatus({ relayPool, pollingInterval: 2000 })
|
||||
// Poll for relay status updates
|
||||
const relayStatuses = useRelayStatus({ relayPool })
|
||||
|
||||
useEffect(() => {
|
||||
// Don't update from external settings if we're currently making local changes
|
||||
|
||||
Reference in New Issue
Block a user