aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules
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/modules
parent450d22758ec169ece8f71bc6bd6c79603c136874 (diff)
downloadplanetwars.dev-e7da88c6a5135e78acea3a29040cfbf1e7e0b71f.tar.xz
planetwars.dev-e7da88c6a5135e78acea3a29040cfbf1e7e0b71f.zip
restructure server entrypoint for ranker
Diffstat (limited to 'planetwars-server/src/modules')
-rw-r--r--planetwars-server/src/modules/mod.rs1
-rw-r--r--planetwars-server/src/modules/ranking.rs5
2 files changed, 6 insertions, 0 deletions
diff --git a/planetwars-server/src/modules/mod.rs b/planetwars-server/src/modules/mod.rs
index 57c1ef5..2efce4e 100644
--- a/planetwars-server/src/modules/mod.rs
+++ b/planetwars-server/src/modules/mod.rs
@@ -1,3 +1,4 @@
// This module implements general domain logic, not directly
// tied to the database or API layers.
pub mod bots;
+pub mod ranking;
diff --git a/planetwars-server/src/modules/ranking.rs b/planetwars-server/src/modules/ranking.rs
new file mode 100644
index 0000000..739e6a6
--- /dev/null
+++ b/planetwars-server/src/modules/ranking.rs
@@ -0,0 +1,5 @@
+use crate::DbPool;
+
+pub async fn run_ranker(_db_pool: DbPool) {
+ // do nothing, for now
+}