From be4844c7108ddce2db9ff7e0eeaff186d8f4aadd Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Fri, 13 Mar 2026 01:03:38 +0100 Subject: [PATCH] [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 Signed-off-by: Stan Grams --- src/trx-client/src/remote_client.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/trx-client/src/remote_client.rs b/src/trx-client/src/remote_client.rs index 0234ccd..88874dc 100644 --- a/src/trx-client/src/remote_client.rs +++ b/src/trx-client/src/remote_client.rs @@ -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 {