Skip to content

Commit 188700e

Browse files
committed
Increase delay between pull requests
This only got stuck once but I belive its more safer to increase duration between pull requests
1 parent cc41c5a commit 188700e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/utils/daemon.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ pub fn start_daemon() {
4545
}
4646

4747

48-
// check new crates every 5 minutes
48+
// check new crates every 15 minutes
49+
// FIXME: why not just check new crates and build them if there is any?
4950
thread::spawn(move || {
5051
loop {
51-
thread::sleep(Duration::from_secs(300));
52+
thread::sleep(Duration::from_secs(900));
5253
debug!("Checking new crates");
5354
let doc_builder = DocBuilder::new(opts());
5455
if let Err(e) = doc_builder.get_new_crates() {
@@ -58,10 +59,10 @@ pub fn start_daemon() {
5859
});
5960

6061

61-
// build new crates every 3 minutes
62+
// build crates in que every 12 minutes
6263
thread::spawn(move || {
6364
loop {
64-
thread::sleep(Duration::from_secs(180));
65+
thread::sleep(Duration::from_secs(720));
6566

6667
let mut opts = opts();
6768
opts.skip_if_exists = true;

0 commit comments

Comments
 (0)