rename sync_cert to sync_https_cert

This commit is contained in:
Brian Picciano 2023-07-27 14:12:22 +02:00
parent ef8c5827a0
commit 7a9ae81376
2 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ pub trait Manager: Sync + Send + rustls::server::ResolvesServerCert {
path: &str,
) -> Result<util::BoxByteStream, GetFileError>;
fn sync_cert<'mgr>(
fn sync_https_cert<'mgr>(
&'mgr self,
domain: domain::Name,
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>>;
@ -256,7 +256,7 @@ impl Manager for ManagerImpl {
Ok(f)
}
fn sync_cert<'mgr>(
fn sync_https_cert<'mgr>(
&'mgr self,
domain: domain::Name,
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>> {
@ -285,7 +285,7 @@ impl Manager for ManagerImpl {
self.domain_store.set(&domain, &settings)?;
self.sync_cert(domain).await?;
self.sync_https_cert(domain).await?;
Ok(())
})

View File

@ -123,7 +123,7 @@ pub async fn cert_refresher(
}
_ = domain_manager
.sync_cert(primary_domain.clone())
.sync_https_cert(primary_domain.clone())
.await
.inspect_err(|err| {
log::error!(
@ -141,7 +141,7 @@ pub async fn cert_refresher(
for domain in domains_iter.unwrap().into_iter() {
let _ = domain_manager
.sync_cert(domain.clone())
.sync_https_cert(domain.clone())
.await
.inspect_err(|err| {
log::error!("Error while getting cert for {}: {err}", domain.as_str(),)