From 0171262581fbd000846dece01f0fd26df48fd1d6 Mon Sep 17 00:00:00 2001
From: Jacob Taylor <jacob@explodie.org>
Date: Sun, 30 Jun 2024 21:38:52 -0700
Subject: [PATCH] make pduid_pdu/eventid_outlierpdu scale with
 conduit_cache_capacity_modifier via cache_size(), and fix lint

---
 src/database/opts.rs | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/database/opts.rs b/src/database/opts.rs
index 4f9dece5..1b9c163f 100644
--- a/src/database/opts.rs
+++ b/src/database/opts.rs
@@ -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),
 		),
 
-		#[allow(clippy::as_conversions, clippy::cast_sign_loss, clippy::cast_possible_truncation)]
-		"eventid_outlierpdu" => set_table_with_new_cache(
-			&mut opts,
-			cfg,
-			cache,
-			name,
-			(cfg.pdu_cache_capacity as usize).saturating_mul(1536),
-		),
+		"eventid_outlierpdu" => {
+			set_table_with_new_cache(&mut opts, cfg, cache, name, cache_size(cfg, cfg.pdu_cache_capacity, 1536));
+		},
 
 		"pduid_pdu" => set_table_with_shared_cache(&mut opts, cfg, cache, name, "eventid_outlierpdu"),