[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user