aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/main.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-04-27 20:43:12 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-04-27 20:43:12 +0200
commite7da88c6a5135e78acea3a29040cfbf1e7e0b71f (patch)
tree4665e63cf40b8d7a96158a1273d0ca1b9fa261a4 /planetwars-server/src/main.rs
parent450d22758ec169ece8f71bc6bd6c79603c136874 (diff)
downloadplanetwars.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.rs11
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;
}