move these config checks to main.rs
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0ea8657070
commit
dac8b3db49
2 changed files with 10 additions and 8 deletions
|
@ -257,14 +257,6 @@ impl KeyValueDatabase {
|
|||
}
|
||||
};
|
||||
|
||||
if config.registration_token == Some(String::new()) {
|
||||
return Err(Error::bad_config("Registration token is empty"));
|
||||
}
|
||||
|
||||
if config.max_request_size < 4096 {
|
||||
error!(?config.max_request_size, "Max request size is less than 4KB. Please increase it.");
|
||||
}
|
||||
|
||||
let (presence_sender, presence_receiver) = mpsc::unbounded_channel();
|
||||
|
||||
let db_raw = Box::new(Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue