~foss/archivebot

14adda48aff2c6ece70cad09cd5567ab98831b94 — Foss 1 year, 6 months ago f98ebbb
Always write the time, even when it fails
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -1
@@ 41,10 41,10 @@ fn main() {
        .iter()
        .rev()
        .for_each(|sub| {
            fs::write("last_time.txt", sub.date.to_rfc3339()).unwrap();
            if let Some(archived) = urls::archive_url(sub.url.to_string()) {
                client.comment_post(sub.id, &*archived).unwrap();
            }
            fs::write("last_time.txt", sub.date.to_rfc3339()).unwrap();
        });

    fs::write("last_time.txt", Utc::now().to_rfc3339()).unwrap();