mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
move config check into config load function
This commit is contained in:
parent
75ef57e0ce
commit
e9caf228b3
3 changed files with 11 additions and 6 deletions
|
|
@ -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")?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue