mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 11:22:25 +00:00
rename conduit_cache_capacity_modifier to cache_capacity_modifier
this prefix causes you to require setting the environment variable to `CONDUWUIT_CONDUIT_CACHE_CAPACITY_MODIFIER` alias this so we dont break any configs Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
a1bfd7a018
commit
bacffd6174
7 files changed
+16
-12
No files matched your search
@@ -310,7 +310,7 @@ fn set_table_with_shared_cache(
|
||||
}
|
||||
|
||||
fn cache_size(config: &Config, base_size: u32, entity_size: usize) -> usize {
|
||||
let ents = f64::from(base_size) * config.conduit_cache_capacity_modifier;
|
||||
let ents = f64::from(base_size) * config.cache_capacity_modifier;
|
||||
|
||||
#[allow(clippy::as_conversions, clippy::cast_sign_loss, clippy::cast_possible_truncation)]
|
||||
(ents as usize)
|
||||
|
||||
Reference in new issue
Block a user