mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
scale roomid_spacechunk_cache by modifier
Not scaling this was probably unintentional.
This commit is contained in:
parent
4083451a10
commit
9fab7538a0
1 changed files with 10 additions and 1 deletions
|
|
@ -165,7 +165,16 @@ impl Services {
|
|||
threads: rooms::threads::Service {
|
||||
db,
|
||||
},
|
||||
spaces: rooms::spaces::Service::new(200),
|
||||
spaces: rooms::spaces::Service::new(
|
||||
#[allow(
|
||||
clippy::as_conversions,
|
||||
clippy::cast_sign_loss,
|
||||
clippy::cast_possible_truncation
|
||||
)]
|
||||
{
|
||||
(200.0 * config.cache_capacity_modifier) as usize
|
||||
},
|
||||
),
|
||||
user: db,
|
||||
},
|
||||
transaction_ids: db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue