mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Use TokenSet for roomid_mutex_federation
This commit is contained in:
parent
4893c54f4f
commit
dd24a44112
3 changed files with 22 additions and 35 deletions
|
|
@ -84,7 +84,7 @@ pub(crate) struct Service {
|
|||
|
||||
// this lock will be held longer
|
||||
pub(crate) roomid_mutex_federation:
|
||||
RwLock<HashMap<OwnedRoomId, Arc<Mutex<()>>>>,
|
||||
TokenSet<OwnedRoomId, marker::Federation>,
|
||||
pub(crate) roomid_federationhandletime:
|
||||
RwLock<HashMap<OwnedRoomId, (OwnedEventId, Instant)>>,
|
||||
pub(crate) stateres_mutex: Arc<Mutex<()>>,
|
||||
|
|
@ -281,7 +281,9 @@ impl Service {
|
|||
roomid_mutex_insert: TokenSet::new(
|
||||
"roomid_mutex_insert".to_owned(),
|
||||
),
|
||||
roomid_mutex_federation: RwLock::new(HashMap::new()),
|
||||
roomid_mutex_federation: TokenSet::new(
|
||||
"roomid_mutex_federation".to_owned(),
|
||||
),
|
||||
roomid_federationhandletime: RwLock::new(HashMap::new()),
|
||||
stateres_mutex: Arc::new(Mutex::new(())),
|
||||
rotate: RotationHandler::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue