aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 09:57:55 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-13 09:57:55 +0100
commit5a326222c45f5c6407c0fdbdafea7282fb6ba555 (patch)
treeb2e30d8509525324593dd5dc314e8f41bf739ef0 /src
parent388d5b22758a079330cab3513e6b4710f4389747 (diff)
downloadtricot-5a326222c45f5c6407c0fdbdafea7282fb6ba555.tar.gz
tricot-5a326222c45f5c6407c0fdbdafea7282fb6ba555.zip
correctly warmup cert store
Diffstat (limited to 'src')
-rw-r--r--src/cert_store.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cert_store.rs b/src/cert_store.rs
index edbd0a1..473dc7c 100644
--- a/src/cert_store.rs
+++ b/src/cert_store.rs
@@ -254,14 +254,15 @@ impl CertStore {
consul_certs.len()
);
let mut loaded_certs: usize = 0;
- for (domain, cert) in consul_certs {
+ for (key, cert) in consul_certs {
let certser: CertSer = match serde_json::from_slice(&cert) {
Ok(cs) => cs,
Err(e) => {
- warn!("Could not deserialize CertSer for {domain}: {e}");
+ warn!("Could not deserialize CertSer for {key}: {e}");
continue;
}
};
+ let domain = certser.hostname.clone();
let cert = match Cert::new(certser) {
Ok(c) => c,