diff options
| author | Fuwn <[email protected]> | 2021-12-22 03:46:53 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-12-22 03:46:53 -0800 |
| commit | 23375b0d30116127a30b64cacafff1794cf8d701 (patch) | |
| tree | 8cdaca89aba3dec5c9d3fe60b0424bfaa097e41a /crates/whirl_server/src/lib.rs | |
| parent | fix: more localhost ips (diff) | |
| download | whirl-23375b0d30116127a30b64cacafff1794cf8d701.tar.xz whirl-23375b0d30116127a30b64cacafff1794cf8d701.zip | |
chore(fmt): auto-format
Diffstat (limited to 'crates/whirl_server/src/lib.rs')
| -rw-r--r-- | crates/whirl_server/src/lib.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/whirl_server/src/lib.rs b/crates/whirl_server/src/lib.rs index 2c53ad6..7e7db98 100644 --- a/crates/whirl_server/src/lib.rs +++ b/crates/whirl_server/src/lib.rs @@ -119,7 +119,11 @@ pub mod make { pub fn distributor() -> JoinHandle<()> { tokio::spawn(async move { crate::distributor::Distributor::listen( - &*format!("{}:{}", Config::get().whirlsplash.ip, Config::get().distributor.port), + &*format!( + "{}:{}", + Config::get().whirlsplash.ip, + Config::get().distributor.port + ), ServerType::Auto, ) .await @@ -136,7 +140,11 @@ pub mod make { pub fn hub() -> JoinHandle<()> { tokio::spawn(async move { crate::hub::Hub::listen( - &*format!("{}:{}", Config::get().whirlsplash.ip, Config::get().hub.port), + &*format!( + "{}:{}", + Config::get().whirlsplash.ip, + Config::get().hub.port + ), ServerType::Room, ) .await |