Skip to content

Commit

Permalink
added units
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarticus committed Nov 27, 2024
1 parent 386ff7b commit e68cf70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rust/feature-flags/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ pub struct Config {
#[envconfig(from = "TEAM_IDS_TO_TRACK", default = "all")]
pub team_ids_to_track: TeamIdsToTrack,

#[envconfig(from = "CACHE_MAX_CAPACITY", default = "100000")]
pub cache_max_capacity: u64,
#[envconfig(from = "CACHE_MAX_ENTRIES", default = "100000")]
pub cache_max_entries: u64,

#[envconfig(from = "CACHE_TTL_SECONDS", default = "300")]
pub cache_ttl_seconds: u64,
Expand All @@ -120,7 +120,7 @@ impl Config {
maxmind_db_path: "".to_string(),
enable_metrics: false,
team_ids_to_track: TeamIdsToTrack::All,
cache_max_capacity: 100_000,
cache_max_entries: 100_000,
cache_ttl_seconds: 300,
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust/feature-flags/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ where

let cohort_cache = Arc::new(CohortCacheManager::new(
reader.clone(),
Some(config.cache_max_capacity),
Some(config.cache_max_entries),
Some(config.cache_ttl_seconds),
));

Expand Down

0 comments on commit e68cf70

Please sign in to comment.