use multiget for shortid conversions
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -41,7 +41,10 @@ use serde::Deserialize;
|
||||
use self::data::Data;
|
||||
use crate::{
|
||||
rooms,
|
||||
rooms::{short::ShortStateHash, state::RoomMutexGuard},
|
||||
rooms::{
|
||||
short::{ShortEventId, ShortStateHash, ShortStateKey},
|
||||
state::RoomMutexGuard,
|
||||
},
|
||||
Dep,
|
||||
};
|
||||
|
||||
@@ -102,6 +105,13 @@ impl Service {
|
||||
self.db.state_full_ids(shortstatehash).await
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub async fn state_full_shortids(
|
||||
&self, shortstatehash: ShortStateHash,
|
||||
) -> Result<Vec<(ShortStateKey, ShortEventId)>> {
|
||||
self.db.state_full_shortids(shortstatehash).await
|
||||
}
|
||||
|
||||
pub async fn state_full(
|
||||
&self, shortstatehash: ShortStateHash,
|
||||
) -> Result<HashMap<(StateEventType, String), Arc<PduEvent>>> {
|
||||
|
||||
Reference in New Issue
Block a user