Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2024-06-12 03:39:15 +00:00 committed by GitHub
parent 0592044ec0
commit 926e5744f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -520,7 +520,11 @@ async fn setup_networking(
(Some(listener), true)
}
None => {
let min_port = if protocol == "ws" { WS_MIN_PORT } else { TCP_MIN_PORT };
let min_port = if protocol == "ws" {
WS_MIN_PORT
} else {
TCP_MIN_PORT
};
let listener = http::utils::find_open_port(min_port, MAX_PORT)
.await
.expect("no ports found in range 9000-65535 for kinode networking");