diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-27 21:26:45 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-27 21:26:45 +0100 |
commit | b0361d395c24eea0bc889f5510c378bddd282169 (patch) | |
tree | 70ca3d871bc0c7a2e1ede4eab1145701ddf2d054 /src/state.rs | |
parent | 27e6f6e1e9584e43c004bf51cc69ab8c0873f1a7 (diff) | |
download | meta-adservices-b0361d395c24eea0bc889f5510c378bddd282169.tar meta-adservices-b0361d395c24eea0bc889f5510c378bddd282169.tar.bz2 meta-adservices-b0361d395c24eea0bc889f5510c378bddd282169.tar.zst |
move host tool added
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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<String, AdInfo>, @@ -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<Self> { |