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
This commit is contained in:
Charles Hall 2024-09-24 17:19:20 -07:00
parent 279c6472c5
commit 75ef57e0ce
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -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")?,