aboutsummaryrefslogtreecommitdiff
path: root/src/cert_store.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-10 16:40:05 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-10 16:40:05 +0100
commit7488d8e907dadc3e91c8c8920fdc38f42c455b50 (patch)
treef679eee16671411aaf423dfc62f9b11c5812de22 /src/cert_store.rs
parente3a030ceafb960ac378edbb8be9659c964ead0d8 (diff)
downloadtricot-7488d8e907dadc3e91c8c8920fdc38f42c455b50.tar.gz
tricot-7488d8e907dadc3e91c8c8920fdc38f42c455b50.zip
Exclude partial content from compression
Diffstat (limited to 'src/cert_store.rs')
-rw-r--r--src/cert_store.rs8
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?;