[fix](trx-client): speed up remote spectrum polling

Raise remote spectrum polling from 100 ms to 50 ms while keeping the relaxed timeout and subscriber gating.

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-13 01:03:38 +01:00
parent 4f4cd4647d
commit be4844c710
+3 -4
View File
@@ -42,10 +42,9 @@ impl RemoteEndpoint {
}
}
// Remote spectrum snapshots do not need to outpace the SDR-side producer.
// Polling at ~10 Hz avoids stacking unnecessary in-flight requests on slower
// links while still matching the typical backend update cadence.
const SPECTRUM_POLL_INTERVAL: Duration = Duration::from_millis(100);
// Keep remote spectrum reasonably responsive without returning to the old
// timeout churn caused by a much tighter request cadence.
const SPECTRUM_POLL_INTERVAL: Duration = Duration::from_millis(50);
#[derive(Clone)]
pub struct RemoteClientConfig {