summaryrefslogtreecommitdiffstats
path: root/src/network/dns/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/dns/client.rs')
-rw-r--r--src/network/dns/client.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/dns/client.rs b/src/network/dns/client.rs
index ec47d50..0adb787 100644
--- a/src/network/dns/client.rs
+++ b/src/network/dns/client.rs
@@ -1,15 +1,17 @@
-use crate::network::dns::{resolver::Lookup, IpTable};
use std::{
collections::HashSet,
net::IpAddr,
sync::{Arc, Mutex},
thread::{Builder, JoinHandle},
};
+
use tokio::{
runtime::Runtime,
sync::mpsc::{self, Sender},
};
+use crate::network::dns::{resolver::Lookup, IpTable};
+
type PendingAddrs = HashSet<IpAddr>;
const CHANNEL_SIZE: usize = 1_000;