mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-21 01:31:24 +01:00
move auth_chain_cache to service
This commit is contained in:
parent
47502d1f36
commit
095ee483ac
5 changed files with 65 additions and 52 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashSet, sync::Arc};
|
||||
use std::collections::HashSet;
|
||||
|
||||
use crate::{service::rooms::short::ShortEventId, Result};
|
||||
|
||||
|
|
@ -6,10 +6,10 @@ pub(crate) trait Data: Send + Sync {
|
|||
fn get_cached_eventid_authchain(
|
||||
&self,
|
||||
shorteventid: &[ShortEventId],
|
||||
) -> Result<Option<Arc<HashSet<ShortEventId>>>>;
|
||||
) -> Result<Option<HashSet<ShortEventId>>>;
|
||||
fn cache_auth_chain(
|
||||
&self,
|
||||
shorteventid: Vec<ShortEventId>,
|
||||
auth_chain: Arc<HashSet<ShortEventId>>,
|
||||
shorteventid: &[ShortEventId],
|
||||
auth_chain: &HashSet<ShortEventId>,
|
||||
) -> Result<()>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue