rename sync_cert to sync_https_cert
This commit is contained in:
parent
ef8c5827a0
commit
7a9ae81376
@ -149,7 +149,7 @@ pub trait Manager: Sync + Send + rustls::server::ResolvesServerCert {
|
|||||||
path: &str,
|
path: &str,
|
||||||
) -> Result<util::BoxByteStream, GetFileError>;
|
) -> Result<util::BoxByteStream, GetFileError>;
|
||||||
|
|
||||||
fn sync_cert<'mgr>(
|
fn sync_https_cert<'mgr>(
|
||||||
&'mgr self,
|
&'mgr self,
|
||||||
domain: domain::Name,
|
domain: domain::Name,
|
||||||
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>>;
|
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>>;
|
||||||
@ -256,7 +256,7 @@ impl Manager for ManagerImpl {
|
|||||||
Ok(f)
|
Ok(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sync_cert<'mgr>(
|
fn sync_https_cert<'mgr>(
|
||||||
&'mgr self,
|
&'mgr self,
|
||||||
domain: domain::Name,
|
domain: domain::Name,
|
||||||
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>> {
|
) -> util::BoxFuture<'mgr, Result<(), unexpected::Error>> {
|
||||||
@ -285,7 +285,7 @@ impl Manager for ManagerImpl {
|
|||||||
|
|
||||||
self.domain_store.set(&domain, &settings)?;
|
self.domain_store.set(&domain, &settings)?;
|
||||||
|
|
||||||
self.sync_cert(domain).await?;
|
self.sync_https_cert(domain).await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
|
@ -123,7 +123,7 @@ pub async fn cert_refresher(
|
|||||||
}
|
}
|
||||||
|
|
||||||
_ = domain_manager
|
_ = domain_manager
|
||||||
.sync_cert(primary_domain.clone())
|
.sync_https_cert(primary_domain.clone())
|
||||||
.await
|
.await
|
||||||
.inspect_err(|err| {
|
.inspect_err(|err| {
|
||||||
log::error!(
|
log::error!(
|
||||||
@ -141,7 +141,7 @@ pub async fn cert_refresher(
|
|||||||
|
|
||||||
for domain in domains_iter.unwrap().into_iter() {
|
for domain in domains_iter.unwrap().into_iter() {
|
||||||
let _ = domain_manager
|
let _ = domain_manager
|
||||||
.sync_cert(domain.clone())
|
.sync_https_cert(domain.clone())
|
||||||
.await
|
.await
|
||||||
.inspect_err(|err| {
|
.inspect_err(|err| {
|
||||||
log::error!("Error while getting cert for {}: {err}", domain.as_str(),)
|
log::error!("Error while getting cert for {}: {err}", domain.as_str(),)
|
||||||
|
Loading…
Reference in New Issue
Block a user