fix unnecessary re-serializations

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-09 03:37:13 +00:00 committed by strawberry
commit 814b9e28b6
7 changed files with 9 additions and 11 deletions

View file

@ -197,7 +197,7 @@ pub async fn get_or_create_shortstatehash(&self, state_hash: &[u8]) -> (u64, boo
#[implement(Service)]
pub async fn get_shortroomid(&self, room_id: &RoomId) -> Result<u64> {
self.db.roomid_shortroomid.qry(room_id).await.deserialized()
self.db.roomid_shortroomid.get(room_id).await.deserialized()
}
#[implement(Service)]