File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,11 @@ pub fn start_daemon() {
45
45
}
46
46
47
47
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?
49
50
thread:: spawn ( move || {
50
51
loop {
51
- thread:: sleep ( Duration :: from_secs ( 300 ) ) ;
52
+ thread:: sleep ( Duration :: from_secs ( 900 ) ) ;
52
53
debug ! ( "Checking new crates" ) ;
53
54
let doc_builder = DocBuilder :: new ( opts ( ) ) ;
54
55
if let Err ( e) = doc_builder. get_new_crates ( ) {
@@ -58,10 +59,10 @@ pub fn start_daemon() {
58
59
} ) ;
59
60
60
61
61
- // build new crates every 3 minutes
62
+ // build crates in que every 12 minutes
62
63
thread:: spawn ( move || {
63
64
loop {
64
- thread:: sleep ( Duration :: from_secs ( 180 ) ) ;
65
+ thread:: sleep ( Duration :: from_secs ( 720 ) ) ;
65
66
66
67
let mut opts = opts ( ) ;
67
68
opts. skip_if_exists = true ;
You can’t perform that action at this time.
0 commit comments