spat: Increase TLC cache lifetime
This commit is contained in:
parent
26a8d0d18a
commit
dc547b8178
1 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ pub mod denm;
|
|||
#[cfg(feature = "spat")]
|
||||
pub mod tlc;
|
||||
|
||||
#[cfg(feature = "spat")]
|
||||
const TLC_CACHE_LIFETIME: chrono::Duration = chrono::Duration::minutes(1);
|
||||
#[cfg(feature = "spat")]
|
||||
const PRUNE_INTERVAL: chrono::Duration = chrono::Duration::seconds(5);
|
||||
|
||||
|
|
@ -143,7 +145,7 @@ impl State {
|
|||
#[cfg(feature = "spat")]
|
||||
last_prune: chrono::NaiveDateTime::default(),
|
||||
#[cfg(feature = "spat")]
|
||||
tlc_cache: tlc::Data::new(chrono::Duration::seconds(20)),
|
||||
tlc_cache: tlc::Data::new(TLC_CACHE_LIFETIME),
|
||||
#[cfg(feature = "spat")]
|
||||
glosa_state: GlosaState::default(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue