1
0
Fork 0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-11-20 11:36:11 -05:00

Don't remove last_working if a link fails

This commit is contained in:
Tom Parker-Shemilt 2020-03-26 23:22:40 +00:00
parent ec0f4a9949
commit d4b44fd6d5

View file

@ -316,7 +316,6 @@ async fn main() -> Result<(), Error> {
if let Some(link) = results.get_mut(&url) {
link.updated_at = Local::now();
link.working = Working::No(message);
link.last_working = None;
} else {
results.insert(url.clone(), Link {
updated_at: Local::now(),