work without valid local conf checked

pull/23/head
prplV 2025-01-20 12:00:59 +03:00
parent ebff93698c
commit 0b61f56bca
2 changed files with 4 additions and 3 deletions

View File

@ -31,4 +31,3 @@
} }
] ]
} }

View File

@ -336,7 +336,6 @@ pub async fn subscribe_config_stream(actual_prcs: Arc<Processes>, params: Arc<Pr
info!("Runner subscribed on config update publishing in channel {}", &channel_name); info!("Runner subscribed on config update publishing in channel {}", &channel_name);
loop { loop {
if let Ok(msg) = pubsub.get_message() { if let Ok(msg) = pubsub.get_message() {
info!("New config was pulled from Redis Server");
let get_remote_config: Result<String, redis::RedisError> = msg.get_payload(); let get_remote_config: Result<String, redis::RedisError> = msg.get_payload();
match get_remote_config { match get_remote_config {
Ok(payload) => { Ok(payload) => {
@ -353,7 +352,10 @@ pub async fn subscribe_config_stream(actual_prcs: Arc<Processes>, params: Arc<Pr
return Err(CustomError::Fatal); return Err(CustomError::Fatal);
} }
} }
_ => continue, _ => {
warn!("Pulled new config. Current config is more actual ...");
continue
},
} }
} }
else { else {