From c05789132d9d81ef6f67915a555ec87568c2f31d Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 6 Jan 2023 13:11:08 +0100 Subject: [PATCH] fix: cleanup imports --- src/ip.rs | 2 +- src/ipblc.rs | 2 +- src/zmqcom.rs | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) 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 {