[relay] Calls: rustfmt the long-poll and TURN code of v0.2.0 (no change in behaviour)
This commit is contained in:
@@ -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" => {
|
||||
|
||||
Reference in New Issue
Block a user