mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Load receipts for room before acquiring lock (#213)
This commit is contained in:
parent
dd001af365
commit
ec81b72f2c
3 changed files with 68 additions and 31 deletions
|
@ -1119,6 +1119,10 @@ impl RoomNeeds {
|
|||
pub fn insert(&mut self, room_id: OwnedRoomId, need: Need) {
|
||||
self.needs.entry(room_id).or_default().insert(need);
|
||||
}
|
||||
|
||||
pub fn rooms(&self) -> usize {
|
||||
self.needs.len()
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoIterator for RoomNeeds {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue