feat: registration tokens

This commit is contained in:
Timo Kösters committed 2023-08-09 18:27:30 +02:00
1 parent 3e518773e2
commit c028e0553c
6 files changed
+37 -15

No files matched your search

+4
View File
@@ -267,6 +267,10 @@ impl KeyValueDatabase {
}
};
if config.registration_token == Some(String::new()) {
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.");
}