mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-02 13:36:47 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
0592044ec0
commit
926e5744f7
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user