From b0361d395c24eea0bc889f5510c378bddd282169 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 27 Jan 2025 21:26:45 +0100 Subject: move host tool added --- src/state.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 4c91c6a..72a8aa4 100644 --- a/src/state.rs +++ b/src/state.rs @@ -24,7 +24,7 @@ pub struct Config { impression_weight_falloff: f64, leaderboard_weight_threshold: f64, pub ad_dir: PathBuf, - database_path: PathBuf, + pub database_path: PathBuf, pub port: u16, #[serde(default)] pub ads: HashMap, @@ -43,10 +43,10 @@ struct ImpressionEvent { address_hash: u64, } -static T_TOTAL: TableDefinition<'static, (), u64> = TableDefinition::new("t"); -static T_IMPRESSIONS_RAW: TableDefinition<'static, &str, u64> = TableDefinition::new("ir"); -static T_IMPRESSIONS_WEIGHTED: TableDefinition<'static, &str, f64> = TableDefinition::new("iw"); -static T_IMPRESSIONS_ADS: TableDefinition<'static, &str, u64> = TableDefinition::new("ia"); +pub static T_TOTAL: TableDefinition<'static, (), u64> = TableDefinition::new("t"); +pub static T_IMPRESSIONS_RAW: TableDefinition<'static, &str, u64> = TableDefinition::new("ir"); +pub static T_IMPRESSIONS_WEIGHTED: TableDefinition<'static, &str, f64> = TableDefinition::new("iw"); +pub static T_IMPRESSIONS_ADS: TableDefinition<'static, &str, u64> = TableDefinition::new("ia"); impl Logic { pub fn new(config: Config) -> Arc { -- cgit v1.2.3-70-g09d2