MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / run

Method run

ct_monitor/src/main.rs:370–381  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

368 }
369
370 async fn run(&mut self) {
371 info!("monitoring {}...", self.base_domain);
372 loop {
373 if let Err(err) = self.refresh_known_keys().await {
374 error!("error refreshing known keys: {}", err);
375 }
376 if let Err(err) = self.check_new_logs().await {
377 error!("error: {}", err);
378 }
379 tokio::time::sleep(Duration::from_secs(60)).await;
380 }
381 }
382}
383
384fn validate_domain(domain: &str) -> Result<()> {

Callers 1

mainFunction · 0.45

Calls 2

refresh_known_keysMethod · 0.80
check_new_logsMethod · 0.45

Tested by

no test coverage detected