[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:
@@ -790,6 +790,7 @@ impl ServerConfig {
|
|||||||
aprsfi: AprsFiConfig::default(),
|
aprsfi: AprsFiConfig::default(),
|
||||||
decode_logs: DecodeLogsConfig::default(),
|
decode_logs: DecodeLogsConfig::default(),
|
||||||
sdr: SdrConfig::default(),
|
sdr: SdrConfig::default(),
|
||||||
|
timeouts: TimeoutsConfig::default(),
|
||||||
rigs: Vec::new(),
|
rigs: Vec::new(),
|
||||||
};
|
};
|
||||||
toml::to_string_pretty(&Wrapper { inner: example }).unwrap_or_default()
|
toml::to_string_pretty(&Wrapper { inner: example }).unwrap_or_default()
|
||||||
|
|||||||
@@ -597,7 +597,7 @@ mod tests {
|
|||||||
|
|
||||||
let mut auth = HashSet::new();
|
let mut auth = HashSet::new();
|
||||||
auth.insert("secret".to_string());
|
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 stream = TcpStream::connect(addr).await.expect("connect");
|
||||||
let (reader, mut writer) = stream.into_split();
|
let (reader, mut writer) = stream.into_split();
|
||||||
@@ -633,6 +633,8 @@ mod tests {
|
|||||||
rigs,
|
rigs,
|
||||||
default_id,
|
default_id,
|
||||||
HashSet::new(),
|
HashSet::new(),
|
||||||
|
None,
|
||||||
|
ListenerTimeouts::default(),
|
||||||
shutdown_rx,
|
shutdown_rx,
|
||||||
));
|
));
|
||||||
|
|
||||||
@@ -674,6 +676,8 @@ mod tests {
|
|||||||
rigs,
|
rigs,
|
||||||
default_id,
|
default_id,
|
||||||
HashSet::new(),
|
HashSet::new(),
|
||||||
|
None,
|
||||||
|
ListenerTimeouts::default(),
|
||||||
shutdown_rx,
|
shutdown_rx,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user