summaryrefslogtreecommitdiff
path: root/server/registry/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/registry/src/main.rs')
-rw-r--r--server/registry/src/main.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/server/registry/src/main.rs b/server/registry/src/main.rs
index c24aecbe..670ac3a6 100644
--- a/server/registry/src/main.rs
+++ b/server/registry/src/main.rs
@@ -1,3 +1,21 @@
+/*
+ Hurry Curry! - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
+pub mod conn_test;
pub mod list;
pub mod register;
@@ -17,6 +35,9 @@ use std::{
};
use tokio::{sync::RwLock, time::interval};
+const MAX_ADDR_CACHE: usize = 4096;
+const MAX_SERVERS: usize = 128;
+
fn main() {
env_logger::init_from_env("LOG");
let registry = Arc::new(RwLock::new(Registry::default()));