make local_aliases_for_room db iterator Send
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -84,7 +84,7 @@ impl Data {
|
|||||||
|
|
||||||
pub(super) fn local_aliases_for_room<'a>(
|
pub(super) fn local_aliases_for_room<'a>(
|
||||||
&'a self, room_id: &RoomId,
|
&'a self, room_id: &RoomId,
|
||||||
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a> {
|
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a + Send> {
|
||||||
let mut prefix = room_id.as_bytes().to_vec();
|
let mut prefix = room_id.as_bytes().to_vec();
|
||||||
prefix.push(0xFF);
|
prefix.push(0xFF);
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ impl Service {
|
|||||||
#[tracing::instrument(skip(self), level = "debug")]
|
#[tracing::instrument(skip(self), level = "debug")]
|
||||||
pub fn local_aliases_for_room<'a>(
|
pub fn local_aliases_for_room<'a>(
|
||||||
&'a self, room_id: &RoomId,
|
&'a self, room_id: &RoomId,
|
||||||
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a> {
|
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a + Send> {
|
||||||
self.db.local_aliases_for_room(room_id)
|
self.db.local_aliases_for_room(room_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user