1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-08-31 18:31:00 +00:00

switch Iterator to Send + Iterator in return types

This changes the SQLite implementation quite a bit. It may potentially
reduce performance, but allows using the new async API and removes some
usage of unsafe
This commit is contained in:
chayleaf 2024-06-23 00:31:27 +07:00
parent a7e34eb0b3
commit a8c9e3eebe
No known key found for this signature in database
GPG key ID: 78171AD46227E68E
37 changed files with 139 additions and 166 deletions

View file

@ -39,7 +39,7 @@ impl Service {
self.db.get_pushers(sender)
}
pub fn get_pushkeys(&self, sender: &UserId) -> Box<dyn Iterator<Item = Result<String>>> {
pub fn get_pushkeys(&self, sender: &UserId) -> Box<dyn Send + Iterator<Item = Result<String>>> {
self.db.get_pushkeys(sender)
}