Revert "feat: put p2pool process to syncing if node doesn't respond anymore"

This reverts commit 536af2ce2a.
This commit is contained in:
Cyrix126 2024-10-11 16:33:32 +02:00
parent 6287e3cbac
commit 18513b758f
2 changed files with 0 additions and 6 deletions

View file

@ -13,7 +13,6 @@ use crate::regex::contains_end_status;
use crate::regex::contains_statuscommand; use crate::regex::contains_statuscommand;
use crate::regex::contains_yourhashrate; use crate::regex::contains_yourhashrate;
use crate::regex::contains_yourshare; use crate::regex::contains_yourshare;
use crate::regex::contains_zmq_connection_lost;
use crate::regex::estimated_hr; use crate::regex::estimated_hr;
use crate::regex::nb_current_shares; use crate::regex::nb_current_shares;
use crate::regex::P2POOL_REGEX; use crate::regex::P2POOL_REGEX;

View file

@ -222,11 +222,6 @@ pub fn contains_timeout(l: &str) -> bool {
static LINE_SHARE: Lazy<Regex> = Lazy::new(|| Regex::new(r"timeout").unwrap()); static LINE_SHARE: Lazy<Regex> = Lazy::new(|| Regex::new(r"timeout").unwrap());
LINE_SHARE.is_match(l) LINE_SHARE.is_match(l)
} }
pub fn contains_zmq_connection_lost(l: &str) -> bool {
static LINE_SHARE: Lazy<Regex> =
Lazy::new(|| Regex::new(r"ZMQReader failed to connect to").unwrap());
LINE_SHARE.is_match(l)
}
pub fn contains_error(l: &str) -> bool { pub fn contains_error(l: &str) -> bool {
static LINE_SHARE: Lazy<Regex> = Lazy::new(|| Regex::new(r"error").unwrap()); static LINE_SHARE: Lazy<Regex> = Lazy::new(|| Regex::new(r"error").unwrap());
LINE_SHARE.is_match(l) LINE_SHARE.is_match(l)