(self)
| 394 | } |
| 395 | |
| 396 | pub async fn run(self) { |
| 397 | let mut fut_interval = tokio::time::interval(std::time::Duration::from_secs(u64::from( |
| 398 | DNSCRYPT_CERTS_RENEWAL, |
| 399 | ))); |
| 400 | let fut = async move { |
| 401 | loop { |
| 402 | fut_interval.tick().await; |
| 403 | self.update(); |
| 404 | debug!("New cert issued"); |
| 405 | } |
| 406 | }; |
| 407 | fut.await |
| 408 | } |
| 409 | } |