[relay] Calls: rustfmt the long-poll and TURN code of v0.2.0 (no change in behaviour)

This commit is contained in:
2026-12-03 09:20:13 +01:00
parent 7a2b8252da
commit cb7cbd4941
7 changed files with 257 additions and 52 deletions
+8 -2
View File
@@ -55,10 +55,16 @@ pub fn parse_args<I: IntoIterator<Item = String>>(args: I) -> Result<Args, Strin
"--max-file-bytes" => limits.file_bytes = positive(it.next())?,
"--push-loopback" => push_loopback = true,
"--turn-secret-file" => {
turn_secret_file = Some(it.next().map(PathBuf::from).ok_or_else(|| usage.to_string())?)
turn_secret_file = Some(
it.next()
.map(PathBuf::from)
.ok_or_else(|| usage.to_string())?,
)
}
"--turn-url" => {
let url = it.next().filter(|u| u.starts_with("turn:") || u.starts_with("turns:"));
let url = it
.next()
.filter(|u| u.starts_with("turn:") || u.starts_with("turns:"));
turn_urls.push(url.ok_or_else(|| usage.to_string())?);
}
"--listen" => {