[fix](trx-server): wire TimeoutsConfig into example config and fix test signatures

- Include TimeoutsConfig in --print-config example output
- Update run_listener() test call sites with new parameters

https://claude.ai/code/session_01P9G7QCWfiYbPVJ7cgiXznf
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-28 23:36:52 +00:00
committed by Stan Grams
parent 16426548de
commit 6c08ff4776
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -790,6 +790,7 @@ impl ServerConfig {
aprsfi: AprsFiConfig::default(),
decode_logs: DecodeLogsConfig::default(),
sdr: SdrConfig::default(),
timeouts: TimeoutsConfig::default(),
rigs: Vec::new(),
};
toml::to_string_pretty(&Wrapper { inner: example }).unwrap_or_default()
+5 -1
View File
@@ -597,7 +597,7 @@ mod tests {
let mut auth = HashSet::new();
auth.insert("secret".to_string());
let handle = tokio::spawn(run_listener(addr, rigs, default_id, auth, shutdown_rx));
let handle = tokio::spawn(run_listener(addr, rigs, default_id, auth, None, ListenerTimeouts::default(), shutdown_rx));
let stream = TcpStream::connect(addr).await.expect("connect");
let (reader, mut writer) = stream.into_split();
@@ -633,6 +633,8 @@ mod tests {
rigs,
default_id,
HashSet::new(),
None,
ListenerTimeouts::default(),
shutdown_rx,
));
@@ -674,6 +676,8 @@ mod tests {
rigs,
default_id,
HashSet::new(),
None,
ListenerTimeouts::default(),
shutdown_rx,
));