@ -4,7 +4,9 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
#[derive(Error, Debug)]
pubenumError{
#[error("The media directory structure depth multiplied by the length is equal to or greater than a sha256 hex hash, please reduce at least one of the two so that their product is less than 64")]
#[error(
"The media directory structure depth multiplied by the length is equal to or greater than a sha256 hex hash, please reduce at least one of the two so that their product is less than 64"
"Cannot reuse an existing database after changing the server name, please delete the old one first."
"Cannot reuse an existing database after changing the server name, please delete the old one first.",
));
}
}
@ -1000,7 +1001,9 @@ impl KeyValueDatabase {
}
ifservices().globals.database_version()?<17{
warn!("Migrating media repository to new format. If you have a lot of media stored, this may take a while, so please be patiant!");
warn!(
"Migrating media repository to new format. If you have a lot of media stored, this may take a while, so please be patiant!"
);
lettree=db._db.open_tree("mediaid_file")?;
tree.clear().unwrap();
@ -1117,7 +1120,9 @@ impl KeyValueDatabase {
matchset_emergency_access(){
Ok(pwd_set)=>{
ifpwd_set{
warn!("The Conduit account emergency password is set! Please unset it as soon as you finish admin account recovery!");
warn!(
"The Conduit account emergency password is set! Please unset it as soon as you finish admin account recovery!"
);
services().admin.send_message(RoomMessageEventContent::text_plain("The Conduit account emergency password is set! Please unset it as soon as you finish admin account recovery!"));