From 75ef57e0cec210a9fdf3650abd7993890870d26d Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 24 Sep 2024 17:19:20 -0700 Subject: [PATCH] remove config check * Database load function is the wrong place for this * There's no good lower bound to check for this * Surely people setting this to a small value would realize what they're in for --- src/database.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/database.rs b/src/database.rs index bd433dd7..2ab3bc6a 100644 --- a/src/database.rs +++ b/src/database.rs @@ -357,13 +357,6 @@ impl KeyValueDatabase { return Err(Error::bad_config("Registration token is empty")); } - if config.max_request_size < 1024 { - error!( - ?config.max_request_size, - "Max request size is less than 1KB. Please increase it.", - ); - } - let db_raw = Box::new(Self { db: builder.clone(), userid_password: builder.open_tree("userid_password")?,