mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
move shorteventid_cache to service
This commit is contained in:
parent
7563360bee
commit
47502d1f36
4 changed files with 45 additions and 30 deletions
|
|
@ -45,6 +45,7 @@ pub(crate) struct Services {
|
|||
}
|
||||
|
||||
impl Services {
|
||||
#[allow(clippy::too_many_lines)]
|
||||
pub(crate) fn build<
|
||||
D: appservice::Data
|
||||
+ pusher::Data
|
||||
|
|
@ -93,7 +94,17 @@ impl Services {
|
|||
db,
|
||||
},
|
||||
search: db,
|
||||
short: rooms::short::Service::new(db),
|
||||
short: rooms::short::Service::new(
|
||||
db,
|
||||
#[allow(
|
||||
clippy::as_conversions,
|
||||
clippy::cast_sign_loss,
|
||||
clippy::cast_possible_truncation
|
||||
)]
|
||||
{
|
||||
(100_000.0 * config.cache_capacity_modifier) as usize
|
||||
},
|
||||
),
|
||||
state: rooms::state::Service {
|
||||
db,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue