MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / run

Method run

src/dnscrypt_certs.rs:396–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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}

Callers 1

mainFunction · 0.80

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected