Skip to content

Commit c0b853a

Browse files
committed
Check and build new crates every 5 minutes
1 parent 712dcb6 commit c0b853a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/daemon.rs

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

4747

48-
// check new crates every 15 minutes
48+
// check new crates every 5 minutes
4949
// FIXME: why not just check new crates and build them if there is any?
5050
thread::spawn(move || {
5151
loop {
52-
thread::sleep(Duration::from_secs(900));
52+
thread::sleep(Duration::from_secs(300));
5353
debug!("Checking new crates");
5454
if let Err(e) = DocBuilder::new(opts()).get_new_crates() {
5555
error!("Failed to get new crates: {}", e);
@@ -58,10 +58,10 @@ pub fn start_daemon() {
5858
});
5959

6060

61-
// build crates in que every 12 minutes
61+
// build crates in que every 5 minutes
6262
thread::spawn(move || {
6363
loop {
64-
thread::sleep(Duration::from_secs(720));
64+
thread::sleep(Duration::from_secs(300));
6565

6666
let mut opts = opts();
6767
opts.skip_if_exists = true;

0 commit comments

Comments
 (0)