re-scheme naming of stream iterator overloads
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
19880ce12b
commit
8258d16a94
18 changed files with 42 additions and 44 deletions
src/service/rooms/state_cache
|
@ -408,7 +408,7 @@ impl Service {
|
|||
pub fn rooms_joined<'a>(&'a self, user_id: &'a UserId) -> impl Stream<Item = &RoomId> + Send + 'a {
|
||||
self.db
|
||||
.userroomid_joined
|
||||
.keys_prefix_raw(user_id)
|
||||
.keys_raw_prefix(user_id)
|
||||
.ignore_err()
|
||||
.map(|(_, room_id): (Ignore, &RoomId)| room_id)
|
||||
}
|
||||
|
@ -469,7 +469,7 @@ impl Service {
|
|||
|
||||
self.db
|
||||
.roomid_inviteviaservers
|
||||
.stream_prefix_raw(room_id)
|
||||
.stream_raw_prefix(room_id)
|
||||
.ignore_err()
|
||||
.map(|(_, servers): KeyVal<'_>| *servers.last().expect("at least one server"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue