Skip to content

Commit

Permalink
pr: Reorder imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Nov 24, 2022
1 parent 06bd2a4 commit 3852852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion iroh-resolver/src/dns_resolver.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use crate::resolver::Path;
use anyhow::Result;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
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
Expand Down
3 changes: 1 addition & 2 deletions iroh-resolver/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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,
};
Expand Down

0 comments on commit 3852852

Please sign in to comment.