diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-21 12:48:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-21 12:48:36 +0200 |
commit | 41c95fc5b6b1c8bc4b944d889414a4197a23837b (patch) | |
tree | 86519d51df113263e0c1e6d92b96b35c72cf37d9 /server/registry/src/main.rs | |
parent | 526bde82158fc58f59a8147566ef0ef01845ac49 (diff) | |
download | hurrycurry-41c95fc5b6b1c8bc4b944d889414a4197a23837b.tar hurrycurry-41c95fc5b6b1c8bc4b944d889414a4197a23837b.tar.bz2 hurrycurry-41c95fc5b6b1c8bc4b944d889414a4197a23837b.tar.zst |
reg: connection test
Diffstat (limited to 'server/registry/src/main.rs')
-rw-r--r-- | server/registry/src/main.rs | 21 |
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())); |