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 12, 2023
1 parent 3a37375 commit daaeb19
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 daaeb19

Please sign in to comment.