crypto: Allow the device store to be cloned.
parent
785db205c3
commit
8d487ac097
|
@ -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()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue