mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
add constructor for lazy-loading service
This commit is contained in:
parent
3b28d0cfda
commit
a083ff9200
2 changed files with 11 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use std::{
|
||||
collections::{BTreeMap, HashMap},
|
||||
collections::BTreeMap,
|
||||
sync::{Arc, Mutex as StdMutex, OnceLock},
|
||||
};
|
||||
|
||||
|
|
@ -88,10 +88,7 @@ impl Services {
|
|||
typing: rooms::edus::typing::Service::new(),
|
||||
},
|
||||
event_handler: rooms::event_handler::Service,
|
||||
lazy_loading: rooms::lazy_loading::Service {
|
||||
db,
|
||||
lazy_load_waiting: Mutex::new(HashMap::new()),
|
||||
},
|
||||
lazy_loading: rooms::lazy_loading::Service::new(db),
|
||||
metadata: db,
|
||||
outlier: db,
|
||||
pdu_metadata: rooms::pdu_metadata::Service {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue