grapevine/src/service/rooms/auth_chain/data.rs
2022-10-10 14:02:00 +02:00

7 lines
264 B
Rust

use std::collections::HashSet;
use crate::Result;
pub trait Data {
fn get_cached_eventid_authchain(&self, shorteventid: u64) -> Result<Option<HashSet<u64>>>;
fn cache_eventid_authchain(&self, shorteventid: u64, auth_chain: &HashSet<u64>) -> Result<()>;
}