skip over broken keys instead of aborting

Errors will show up in the logs in this case with detailed information
about what broke.

In the future we should add some kind of database integrity check
functionality and also functionality to repair/delete broken data, but
for now this at least makes it work 99.99% of the time.
This commit is contained in:
Charles Hall 2024-09-19 12:37:22 -07:00
parent cb3e0c620a
commit b34d78a030
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -844,7 +844,10 @@ impl Service {
});
while let Some(mxc) = rx.recv().await {
let mxc = mxc?;
let Ok(mxc) = mxc else {
continue;
};
let server_name = mxc.server_name();
if server_name == Ok(services().globals.server_name()) {