correctly warmup cert store
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Quentin 2023-12-13 09:57:55 +01:00
parent 388d5b2275
commit 5a326222c4
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -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,