mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
service/users: add ConnectionKey type alias
This commit is contained in:
parent
29634f689a
commit
cc3588ecbd
1 changed files with 4 additions and 7 deletions
|
|
@ -32,15 +32,12 @@ pub(crate) struct SlidingSyncCache {
|
|||
extensions: ExtensionsConfig,
|
||||
}
|
||||
|
||||
type ConnectionKey = (OwnedUserId, OwnedDeviceId, String);
|
||||
|
||||
pub(crate) struct Service {
|
||||
pub(crate) db: &'static dyn Data,
|
||||
#[expect(clippy::type_complexity)]
|
||||
pub(crate) connections: Mutex<
|
||||
BTreeMap<
|
||||
(OwnedUserId, OwnedDeviceId, String),
|
||||
Arc<Mutex<SlidingSyncCache>>,
|
||||
>,
|
||||
>,
|
||||
pub(crate) connections:
|
||||
Mutex<BTreeMap<ConnectionKey, Arc<Mutex<SlidingSyncCache>>>>,
|
||||
}
|
||||
|
||||
impl Service {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue