Remove excessive Info level Logging
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s

This commit is contained in:
Neshura 2023-12-17 23:37:18 +01:00
parent 4f61905ba7
commit 4cb22e630e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 6 additions and 4 deletions

View file

@ -199,9 +199,11 @@ async fn handle_series(
{
let read = data.read().await;
if read.post_history.check_for_post(series.slug.as_str(), post_part_info.as_string().as_str(), post_lemmy_info.title.as_str()) {
drop(read);
let mut write = data.write().await;
write.messages.push(Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title)));
if !read.messages.contains(&Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title))) {
drop(read);
let mut write = data.write().await;
write.messages.push(Message::Info(format!("Skipping '{}' since already posted", post_lemmy_info.title)));
};
post_list.remove(index);
continue
}

View file

@ -62,7 +62,7 @@ impl SharedData {
}
}
#[derive(Clone, Debug, Display)]
#[derive(Clone, Debug, Display, PartialEq)]
pub(crate) enum Message {
Info(String),
Warning(String),