diff --git a/sophia/src/main.rs b/sophia/src/main.rs index 18c11d4..4a6ceba 100644 --- a/sophia/src/main.rs +++ b/sophia/src/main.rs @@ -136,13 +136,9 @@ async fn get_env_args() -> Result { } async fn lookup_ip(domain: &str) -> Result { - let resolver = TokioAsyncResolver::tokio( + let response = TokioAsyncResolver::tokio( ResolverConfig::default(), - ResolverOpts::default()) - .map_err(|e| errno_new!("failed to new resolver, err = {}", e))?; - - - let response = resolver.lookup_ip(domain).await + ResolverOpts::default()).lookup_ip(domain).await .map_err(|e| errno_new!("failed lookup_ip {} , err = {}",domain, e))?; diff --git a/sophia/src/view_model/mod.rs b/sophia/src/view_model/mod.rs index 0db36cd..a0fbef5 100644 --- a/sophia/src/view_model/mod.rs +++ b/sophia/src/view_model/mod.rs @@ -5,7 +5,6 @@ pub use messages::ChatMessageViewModel; pub use messages::SomeUser; pub use user_list::UserViewModel; -pub use self::log::Log; pub use self::log::LogViewModel; mod app;