fix: all the e2ee problems

This commit is contained in:
Timo Kösters
2022-10-13 10:14:52 +02:00
parent 37eb686b5b
commit ac52b234fa
7 changed files with 31 additions and 15 deletions

View File

@@ -128,7 +128,10 @@ impl Service {
Error::BadServerResponse("Push gateway returned bad response.")
})
}
Err(e) => Err(e.into()),
Err(e) => {
warn!("Could not send request to pusher {}: {}", destination, e);
Err(e.into())
},
}
}

View File

@@ -158,8 +158,6 @@ impl Service {
// Find events that have been added since starting the last request
let new_events = self.db.queued_requests(&outgoing_kind).filter_map(|r| r.ok()).take(30).collect::<Vec<_>>();
// TODO: find edus
if !new_events.is_empty() {
// Insert pdus we found
self.db.mark_as_active(&new_events)?;