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:
parent
a7e34eb0b3
commit
a8c9e3eebe
37 changed files with 139 additions and 166 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue