File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl AcmeDnsServer {
162162 . map ( |result| {
163163 Record :: from_rdata (
164164 request. query ( ) . name ( ) . into ( ) ,
165- 300 ,
165+ 1 ,
166166 RData :: TXT ( TXT :: new ( vec ! [ result] ) ) ,
167167 )
168168 } )
Original file line number Diff line number Diff line change @@ -427,11 +427,14 @@ async fn get_certificate(
427427 }
428428 }
429429
430+ // Wait 15 seconds before checking the challenge status.
431+ tokio:: time:: sleep ( Duration :: from_secs ( 15 ) ) . await ;
432+
430433 if challenge. status != ChallengeStatus :: Valid {
431434 tracing:: info!( "Validating challenge." ) ;
432435 let challenge = challenge. validate ( ) . await . context ( "Validating challenge" ) ?;
433436 let challenge = challenge
434- . wait_done ( Duration :: from_secs ( 5 ) , 3 )
437+ . wait_done ( Duration :: from_secs ( 5 ) , 6 )
435438 . await
436439 . context ( "Waiting for challenge" ) ?;
437440 if challenge. status != ChallengeStatus :: Valid {
You can’t perform that action at this time.
0 commit comments