fix clippy performance and sus warnings, remove 1 unwrap, forgot to increment db version
Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
parent
b4e2f7ca37
commit
2dc1c1fdcb
7 changed files with 47 additions and 22 deletions
|
@ -149,7 +149,9 @@ impl Service {
|
|||
// TODO: Sort children
|
||||
children_ids.reverse();
|
||||
|
||||
let chunk = self.get_room_chunk(sender_user, ¤t_room, children_pdus);
|
||||
let chunk = self
|
||||
.get_room_chunk(sender_user, ¤t_room, children_pdus)
|
||||
.await;
|
||||
if let Ok(chunk) = chunk {
|
||||
if left_to_skip > 0 {
|
||||
left_to_skip -= 1;
|
||||
|
@ -303,7 +305,7 @@ impl Service {
|
|||
})
|
||||
}
|
||||
|
||||
fn get_room_chunk(
|
||||
async fn get_room_chunk(
|
||||
&self,
|
||||
sender_user: &UserId,
|
||||
room_id: &RoomId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue