merge rooms/short Data w/ Service; optimize queries
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e8ae1e13e
commit
c569881b08
18 changed files with 257 additions and 262 deletions
|
@ -157,8 +157,8 @@ impl Data {
|
|||
/// Returns the state hash for this pdu.
|
||||
pub(super) async fn pdu_shortstatehash(&self, event_id: &EventId) -> Result<u64> {
|
||||
self.eventid_shorteventid
|
||||
.qry(event_id)
|
||||
.and_then(|shorteventid| self.shorteventid_shortstatehash.qry(&shorteventid))
|
||||
.get(event_id)
|
||||
.and_then(|shorteventid| self.shorteventid_shortstatehash.get(&shorteventid))
|
||||
.await
|
||||
.deserialized()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue