aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,