Fix issue with exporting

This commit is contained in:
jude
2024-10-21 18:50:06 +01:00
parent eb5c851d97
commit 33e85dc44d
5 changed files with 9 additions and 24 deletions

View File

@@ -77,12 +77,6 @@ pub struct Data {
_broadcast: Sender<()>,
}
impl Debug for Data {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "Data {{ .. }}")
}
}
struct Ended;
impl Debug for Ended {
@@ -128,9 +122,9 @@ async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
match cmd_word {
Some("clean") => {
let sent_clean_age = env::var("SENT_CLEAN_AGE")?;
let sent_clean_age = env::var("SENT_CLEAN_AGE").expect("No SENT_CLEAN_AGE provided");
if sent_clean_age.is_empty() {
panic!("No SENT_CLEAN_AGE")
panic!("SENT_CLEAN_AGE empty")
}
sqlx::query!(
"