move config check into config load function

This commit is contained in:
Charles Hall 2024-09-24 17:18:22 -07:00
parent 75ef57e0ce
commit e9caf228b3
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 11 additions and 6 deletions

View file

@ -353,10 +353,6 @@ impl KeyValueDatabase {
}
};
if config.registration_token == Some(String::new()) {
return Err(Error::bad_config("Registration token is empty"));
}
let db_raw = Box::new(Self {
db: builder.clone(),
userid_password: builder.open_tree("userid_password")?,