make pduid_pdu/eventid_outlierpdu scale with conduit_cache_capacity_modifier via cache_size(), and fix lint
This commit is contained in:
parent
972037dcd9
commit
0171262581
1 changed files with 3 additions and 8 deletions
|
@ -144,14 +144,9 @@ pub(crate) fn cf_options(cfg: &Config, name: &str, mut opts: Options, cache: &mu
|
||||||
cache_size(cfg, cfg.statekeyshort_cache_capacity, 1024),
|
cache_size(cfg, cfg.statekeyshort_cache_capacity, 1024),
|
||||||
),
|
),
|
||||||
|
|
||||||
#[allow(clippy::as_conversions, clippy::cast_sign_loss, clippy::cast_possible_truncation)]
|
"eventid_outlierpdu" => {
|
||||||
"eventid_outlierpdu" => set_table_with_new_cache(
|
set_table_with_new_cache(&mut opts, cfg, cache, name, cache_size(cfg, cfg.pdu_cache_capacity, 1536));
|
||||||
&mut opts,
|
},
|
||||||
cfg,
|
|
||||||
cache,
|
|
||||||
name,
|
|
||||||
(cfg.pdu_cache_capacity as usize).saturating_mul(1536),
|
|
||||||
),
|
|
||||||
|
|
||||||
"pduid_pdu" => set_table_with_shared_cache(&mut opts, cfg, cache, name, "eventid_outlierpdu"),
|
"pduid_pdu" => set_table_with_shared_cache(&mut opts, cfg, cache, name, "eventid_outlierpdu"),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue