diff --git a/iroh-resolver/src/dns_resolver.rs b/iroh-resolver/src/dns_resolver.rs index 98ef46c1ac8..5b9a0451df5 100644 --- a/iroh-resolver/src/dns_resolver.rs +++ b/iroh-resolver/src/dns_resolver.rs @@ -1,4 +1,3 @@ -use crate::resolver::Path; use anyhow::Result; use serde::{Deserialize, Serialize}; use std::collections::HashMap; @@ -6,6 +5,8 @@ use std::net::{IpAddr, Ipv4Addr}; use trust_dns_resolver::config::{NameServerConfigGroup, ResolverConfig, ResolverOpts}; use trust_dns_resolver::{AsyncResolver, TokioAsyncResolver}; +use crate::resolver::Path; + #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] pub struct Config { /// Mapping from TLD to the specific instance of resolver diff --git a/iroh-resolver/src/resolver.rs b/iroh-resolver/src/resolver.rs index 57a4b74197d..056dc8247e6 100644 --- a/iroh-resolver/src/resolver.rs +++ b/iroh-resolver/src/resolver.rs @@ -23,8 +23,6 @@ use tokio::sync::Mutex; use tokio::task::JoinHandle; use tracing::{debug, trace, warn}; -use crate::dns_resolver::{Config, DnsResolver}; - use iroh_metrics::{ core::{MObserver, MRecorder}, gateway::{GatewayHistograms, GatewayMetrics}, @@ -34,6 +32,7 @@ use iroh_metrics::{ use crate::codecs::Codec; use crate::content_loader::ContentLoader; +use crate::dns_resolver::{Config, DnsResolver}; use crate::unixfs::{ poll_read_buf_at_pos, DataType, Link, UnixfsChildStream, UnixfsContentReader, UnixfsNode, };