diff --git a/src/ip.rs b/src/ip.rs index bc015fe..f5f029f 100644 --- a/src/ip.rs +++ b/src/ip.rs @@ -1,5 +1,5 @@ use crate::config::Context; -use crate::utils::*; +use crate::utils::gethostname; use chrono::prelude::*; use ipnet::IpNet; diff --git a/src/ipblc.rs b/src/ipblc.rs index 404bbe5..704c660 100644 --- a/src/ipblc.rs +++ b/src/ipblc.rs @@ -2,7 +2,7 @@ use crate::config::{Context, GIT_VERSION}; use crate::fw; use crate::ip::{filter, push_ip, IpData}; use crate::utils::{gethostname, read_lines, sleep_s}; -use crate::zmqcom::*; +use crate::zmqcom::zconnect; use chrono::prelude::*; use chrono::prelude::{DateTime, Local}; diff --git a/src/zmqcom.rs b/src/zmqcom.rs index 108b7cc..7733ca9 100644 --- a/src/zmqcom.rs +++ b/src/zmqcom.rs @@ -1,7 +1,5 @@ use crate::config::ZMQ; -use zmq; - const ZMQPROTO: &str = "tcp"; pub async fn zconnect(zmqcfg: &ZMQ, zmqtype: zmq::SocketType) -> Result {