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 {
entries: DashMap<String, DashMap<String, Device>>,
entries: Arc<DashMap<String, DashMap<String, Device>>>,
}
pub struct UserDevices {
@ -121,7 +121,7 @@ impl UserDevices {
impl DeviceStore {
pub fn new() -> Self {
DeviceStore {
entries: DashMap::new(),
entries: Arc::new(DashMap::new()),
}
}