diff --git a/src/crypto/memory_stores.rs b/src/crypto/memory_stores.rs index cfdb8799..f3227c46 100644 --- a/src/crypto/memory_stores.rs +++ b/src/crypto/memory_stores.rs @@ -99,9 +99,9 @@ impl GroupSessionStore { } } -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct DeviceStore { - entries: DashMap>, + entries: Arc>>, } pub struct UserDevices { @@ -121,7 +121,7 @@ impl UserDevices { impl DeviceStore { pub fn new() -> Self { DeviceStore { - entries: DashMap::new(), + entries: Arc::new(DashMap::new()), } }