mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
move statekeyshort_cache to service
This commit is contained in:
parent
2b2b4169df
commit
190b788683
5 changed files with 79 additions and 64 deletions
|
|
@ -18,11 +18,12 @@ pub(crate) trait Data: Send + Sync {
|
|||
state_key: &str,
|
||||
) -> Result<Option<ShortStateKey>>;
|
||||
|
||||
/// The returned bool indicates whether it was created
|
||||
fn get_or_create_shortstatekey(
|
||||
&self,
|
||||
event_type: &StateEventType,
|
||||
state_key: &str,
|
||||
) -> Result<ShortStateKey>;
|
||||
) -> Result<(ShortStateKey, bool)>;
|
||||
|
||||
fn get_eventid_from_short(
|
||||
&self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue