mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
move auth_chain_cache to service
This commit is contained in:
parent
47502d1f36
commit
095ee483ac
5 changed files with 65 additions and 52 deletions
|
|
@ -71,9 +71,17 @@ impl Services {
|
|||
},
|
||||
rooms: rooms::Service {
|
||||
alias: rooms::alias::Service::new(db),
|
||||
auth_chain: rooms::auth_chain::Service {
|
||||
auth_chain: rooms::auth_chain::Service::new(
|
||||
db,
|
||||
},
|
||||
#[allow(
|
||||
clippy::as_conversions,
|
||||
clippy::cast_sign_loss,
|
||||
clippy::cast_possible_truncation
|
||||
)]
|
||||
{
|
||||
(100_000.0 * config.cache_capacity_modifier) as usize
|
||||
},
|
||||
),
|
||||
directory: db,
|
||||
edus: rooms::edus::Service {
|
||||
read_receipt: db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue