update get_response

This commit is contained in:
lychang
2024-01-12 12:20:44 +08:00
parent 89237f3522
commit 6c594bc461
2 changed files with 11 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ fn main() {
web_parser::download_images(idx, &name);
idx += 1;
}
file::write_file("cache/index", Bytes::from(idx.to_string())).expect(&format!("Write index error: {}", idx));
thread::sleep(Duration::from_millis(300));
}
file::write_file("cache/index", Bytes::from(idx.to_string())).expect(&format!("Write index error: {}", idx));
}