From 3d009e8c9f684237a711b8179f1f2b515a61293f Mon Sep 17 00:00:00 2001 From: pasha Date: Thu, 24 Nov 2022 18:11:21 +0300 Subject: [PATCH] pr: Reorder imports --- iroh-resolver/src/dns_resolver.rs | 8 +++++--- iroh-resolver/src/resolver.rs | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/iroh-resolver/src/dns_resolver.rs b/iroh-resolver/src/dns_resolver.rs index 98ef46c1ac..7814d6a269 100644 --- a/iroh-resolver/src/dns_resolver.rs +++ b/iroh-resolver/src/dns_resolver.rs @@ -1,11 +1,13 @@ -use crate::resolver::Path; -use anyhow::Result; -use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::net::{IpAddr, Ipv4Addr}; + +use anyhow::Result; +use serde::{Deserialize, Serialize}; 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 57a4b74197..056dc8247e 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, };