diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-10 16:40:05 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-10 16:40:05 +0100 |
commit | 7488d8e907dadc3e91c8c8920fdc38f42c455b50 (patch) | |
tree | f679eee16671411aaf423dfc62f9b11c5812de22 /src/cert_store.rs | |
parent | e3a030ceafb960ac378edbb8be9659c964ead0d8 (diff) | |
download | tricot-7488d8e907dadc3e91c8c8920fdc38f42c455b50.tar.gz tricot-7488d8e907dadc3e91c8c8920fdc38f42c455b50.zip |
Exclude partial content from compression
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r-- | src/cert_store.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cert_store.rs b/src/cert_store.rs index 2095660..c272759 100644 --- a/src/cert_store.rs +++ b/src/cert_store.rs @@ -93,7 +93,7 @@ impl CertStore { for dom in domains.iter() { match t_last_check.get(dom) { - Some(t) if Instant::now() - *t < Duration::from_secs(3600) => continue, + Some(t) if Instant::now() - *t < Duration::from_secs(60) => continue, _ => t_last_check.insert(dom.to_string(), Instant::now()), }; @@ -179,7 +179,7 @@ impl CertStore { } // ---- Acquire lock ---- - // the lock is acquired for fifteen minutes, + // the lock is acquired for half an hour, // so that in case of an error we won't retry before // that delay expires @@ -190,8 +190,8 @@ impl CertStore { .create_session(&ConsulSessionRequest { name: lock_name.clone(), node: None, - lock_delay: Some("15m".into()), - ttl: Some("30m".into()), + lock_delay: Some("30m".into()), + ttl: Some("45m".into()), behavior: Some("delete".into()), }) .await?; |