We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70e5a44 + b40db55 commit be80566Copy full SHA for be80566
src/utils/daemon.rs
@@ -53,10 +53,14 @@ pub fn start_daemon() {
53
let opts = opts();
54
let mut doc_builder = DocBuilder::new(opts);
55
56
- debug!("Checking new crates");
57
- match doc_builder.get_new_crates() {
58
- Ok(n) => debug!("{} crates added to queue", n),
59
- Err(e) => error!("Failed to get new crates: {}", e),
+ if doc_builder.is_locked() {
+ debug!("Lock file exists, skipping checking new crates");
+ } else {
+ debug!("Checking new crates");
60
+ match doc_builder.get_new_crates() {
61
+ Ok(n) => debug!("{} crates added to queue", n),
62
+ Err(e) => error!("Failed to get new crates: {}", e),
63
+ }
64
}
65
66
thread::sleep(Duration::from_secs(60));
0 commit comments