diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-04-27 20:43:12 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-04-27 20:43:12 +0200 |
commit | e7da88c6a5135e78acea3a29040cfbf1e7e0b71f (patch) | |
tree | 4665e63cf40b8d7a96158a1273d0ca1b9fa261a4 /planetwars-server/src/main.rs | |
parent | 450d22758ec169ece8f71bc6bd6c79603c136874 (diff) | |
download | planetwars.dev-e7da88c6a5135e78acea3a29040cfbf1e7e0b71f.tar.xz planetwars.dev-e7da88c6a5135e78acea3a29040cfbf1e7e0b71f.zip |
restructure server entrypoint for ranker
Diffstat (limited to 'planetwars-server/src/main.rs')
-rw-r--r-- | planetwars-server/src/main.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/planetwars-server/src/main.rs b/planetwars-server/src/main.rs index 9bd283e..9ed77b3 100644 --- a/planetwars-server/src/main.rs +++ b/planetwars-server/src/main.rs @@ -1,16 +1,7 @@ -use std::net::SocketAddr; - extern crate planetwars_server; extern crate tokio; #[tokio::main] async fn main() { - let app = planetwars_server::app().await; - - let addr = SocketAddr::from(([127, 0, 0, 1], 9000)); - - axum::Server::bind(&addr) - .serve(app.into_make_service()) - .await - .unwrap(); + planetwars_server::run_app().await; } |