diff --git a/src/helper/p2pool.rs b/src/helper/p2pool.rs index ae7bd7f..9d2d6f4 100644 --- a/src/helper/p2pool.rs +++ b/src/helper/p2pool.rs @@ -13,7 +13,6 @@ use crate::regex::contains_end_status; use crate::regex::contains_statuscommand; use crate::regex::contains_yourhashrate; use crate::regex::contains_yourshare; -use crate::regex::contains_zmq_connection_lost; use crate::regex::estimated_hr; use crate::regex::nb_current_shares; use crate::regex::P2POOL_REGEX; diff --git a/src/utils/regex.rs b/src/utils/regex.rs index 6ec97a1..19f1ab6 100644 --- a/src/utils/regex.rs +++ b/src/utils/regex.rs @@ -222,11 +222,6 @@ pub fn contains_timeout(l: &str) -> bool { static LINE_SHARE: Lazy = Lazy::new(|| Regex::new(r"timeout").unwrap()); LINE_SHARE.is_match(l) } -pub fn contains_zmq_connection_lost(l: &str) -> bool { - static LINE_SHARE: Lazy = - Lazy::new(|| Regex::new(r"ZMQReader failed to connect to").unwrap()); - LINE_SHARE.is_match(l) -} pub fn contains_error(l: &str) -> bool { static LINE_SHARE: Lazy = Lazy::new(|| Regex::new(r"error").unwrap()); LINE_SHARE.is_match(l)