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")]
|
#[cfg(feature = "spat")]
|
||||||
pub mod tlc;
|
pub mod tlc;
|
||||||
|
|
||||||
|
#[cfg(feature = "spat")]
|
||||||
|
const TLC_CACHE_LIFETIME: chrono::Duration = chrono::Duration::minutes(1);
|
||||||
#[cfg(feature = "spat")]
|
#[cfg(feature = "spat")]
|
||||||
const PRUNE_INTERVAL: chrono::Duration = chrono::Duration::seconds(5);
|
const PRUNE_INTERVAL: chrono::Duration = chrono::Duration::seconds(5);
|
||||||
|
|
||||||
|
|
@ -143,7 +145,7 @@ impl State {
|
||||||
#[cfg(feature = "spat")]
|
#[cfg(feature = "spat")]
|
||||||
last_prune: chrono::NaiveDateTime::default(),
|
last_prune: chrono::NaiveDateTime::default(),
|
||||||
#[cfg(feature = "spat")]
|
#[cfg(feature = "spat")]
|
||||||
tlc_cache: tlc::Data::new(chrono::Duration::seconds(20)),
|
tlc_cache: tlc::Data::new(TLC_CACHE_LIFETIME),
|
||||||
#[cfg(feature = "spat")]
|
#[cfg(feature = "spat")]
|
||||||
glosa_state: GlosaState::default(),
|
glosa_state: GlosaState::default(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue