improved the error handling

This commit is contained in:
2025-12-31 06:08:54 +00:00
parent 35e6ff8140
commit 26f2f5dbd0
8 changed files with 268 additions and 200 deletions

View File

@@ -0,0 +1,13 @@
use crate::controller::Controller;
impl Controller {
pub async fn add_domain_to_dns(&self, domain: &str) -> Result<(), Box<dyn std::error::Error>> {
self.dns_manager.add_domain(domain, self.pub_addr).await?;
Ok(())
}
pub async fn del_domain_to_dns(&self, domain: &str) -> Result<(), Box<dyn std::error::Error>> {
self.dns_manager.del_domain(domain).await?;
Ok(())
}
}