crypto: Allow the device store to be cloned.

master
Damir Jelić 2020-04-02 17:27:39 +02:00
parent 785db205c3
commit 8d487ac097
1 changed files with 3 additions and 3 deletions

View File

@ -99,9 +99,9 @@ impl GroupSessionStore {
} }
} }
#[derive(Debug)] #[derive(Clone, Debug)]
pub struct DeviceStore { pub struct DeviceStore {
entries: DashMap<String, DashMap<String, Device>>, entries: Arc<DashMap<String, DashMap<String, Device>>>,
} }
pub struct UserDevices { pub struct UserDevices {
@ -121,7 +121,7 @@ impl UserDevices {
impl DeviceStore { impl DeviceStore {
pub fn new() -> Self { pub fn new() -> Self {
DeviceStore { DeviceStore {
entries: DashMap::new(), entries: Arc::new(DashMap::new()),
} }
} }