mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-02 17:25:46 +00:00
Compare commits
2 Commits
ginger/com
...
nex/fix/in
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc574d0f77 | ||
|
|
3992071980 |
1
changelog.d/1265.bugfix
Normal file
1
changelog.d/1265.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Fixed corrupted appservice registrations causing the server to enter a crash loop. Contributed by @nex.
|
||||
@@ -272,7 +272,10 @@ pub async fn get_db_registration(&self, id: &str) -> Result<Registration> {
|
||||
.get(id)
|
||||
.await
|
||||
.and_then(|ref bytes| serde_saphyr::from_slice(bytes).map_err(Into::into))
|
||||
.map_err(|e| err!(Database("Invalid appservice {id:?} registration: {e:?}")))
|
||||
.map_err(|e| {
|
||||
self.db.id_appserviceregistrations.remove(id);
|
||||
err!(Database("Invalid appservice {id:?} registration: {e:?}. Removed."))
|
||||
})
|
||||
}
|
||||
|
||||
pub fn read(&self) -> impl Future<Output = RwLockReadGuard<'_, Registrations>> + Send {
|
||||
|
||||
Reference in New Issue
Block a user