mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
move userdevicesessionid_uiaarequest to service
This commit is contained in:
parent
a1fe0f3fff
commit
fb534d8140
5 changed files with 42 additions and 70 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use std::{
|
||||
collections::{BTreeMap, HashMap, HashSet},
|
||||
collections::{HashMap, HashSet},
|
||||
fs,
|
||||
io::Write,
|
||||
mem::size_of,
|
||||
|
|
@ -13,8 +13,7 @@ use ruma::{
|
|||
push_rules::PushRulesEvent, GlobalAccountDataEventType, StateEventType,
|
||||
},
|
||||
push::Ruleset,
|
||||
CanonicalJsonValue, EventId, OwnedDeviceId, OwnedEventId, OwnedRoomId,
|
||||
OwnedUserId, RoomId, UserId,
|
||||
EventId, OwnedEventId, OwnedRoomId, OwnedUserId, RoomId, UserId,
|
||||
};
|
||||
use tracing::{debug, error, info, info_span, warn, Instrument};
|
||||
|
||||
|
|
@ -81,9 +80,6 @@ pub(crate) struct KeyValueDatabase {
|
|||
// Trees "owned" by `self::key_value::uiaa`
|
||||
// User-interactive authentication
|
||||
pub(super) userdevicesessionid_uiaainfo: Arc<dyn KvTree>,
|
||||
pub(super) userdevicesessionid_uiaarequest: RwLock<
|
||||
BTreeMap<(OwnedUserId, OwnedDeviceId, String), CanonicalJsonValue>,
|
||||
>,
|
||||
|
||||
// Trees "owned" by `self::key_value::rooms::edus`
|
||||
// ReadReceiptId = RoomId + Count + UserId
|
||||
|
|
@ -376,7 +372,6 @@ impl KeyValueDatabase {
|
|||
|
||||
userdevicesessionid_uiaainfo: builder
|
||||
.open_tree("userdevicesessionid_uiaainfo")?,
|
||||
userdevicesessionid_uiaarequest: RwLock::new(BTreeMap::new()),
|
||||
readreceiptid_readreceipt: builder
|
||||
.open_tree("readreceiptid_readreceipt")?,
|
||||
// "Private" read receipt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue