Tweak example code
This commit is contained in:
parent
11c231bace
commit
ab29b552eb
|
@ -72,7 +72,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
|
|
||||||
let Identifier::Dns(identifier) = &authz.identifier;
|
let Identifier::Dns(identifier) = &authz.identifier;
|
||||||
|
|
||||||
println!("Please set the following DNS record then press any key:");
|
println!("Please set the following DNS record then press the Return key:");
|
||||||
println!(
|
println!(
|
||||||
"_acme-challenge.{} IN TXT {}",
|
"_acme-challenge.{} IN TXT {}",
|
||||||
identifier,
|
identifier,
|
||||||
|
@ -106,7 +106,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
match tries < 5 {
|
match tries < 5 {
|
||||||
true => info!(?state, tries, "order is not ready, waiting {delay:?}"),
|
true => info!(?state, tries, "order is not ready, waiting {delay:?}"),
|
||||||
false => {
|
false => {
|
||||||
error!(?state, tries, "order is not ready");
|
error!(tries, "order is not ready: {state:#?}");
|
||||||
return Err(anyhow::anyhow!("order is not ready"));
|
return Err(anyhow::anyhow!("order is not ready"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue