Skip to content

Commit

Permalink
remove skipping of certificate update in GenericCertificateResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Sep 11, 2023
1 parent b7990fe commit 323b81c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ impl CertificateResolver for GenericCertificateResolver {
self.overrides.remove(&fingerprint);
}

// We do not need to update the entry, if the certificate is already registered
if self.get_certificate(&fingerprint).is_some() {
return Ok(fingerprint);
}

let (ok, certificates_to_remove) =
self.should_insert(&fingerprint, &parsed_certificate_and_key)?;
if !ok {
Expand Down

0 comments on commit 323b81c

Please sign in to comment.