Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Apr 28, 2024
1 parent 5180e85 commit d877573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-webserver/src/cron/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ pub async fn run_cron(

fn every_two_hours() -> String {
let mut rng = rand::thread_rng();
format!("{} {} */2 * * * *", rng.gen_range(0..59), rng.gen_range(0..59))
format!("{} {} */2 * * *", rng.gen_range(0..59), rng.gen_range(0..59))

Check warning on line 37 in ee/tabby-webserver/src/cron/mod.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/cron/mod.rs#L35-L37

Added lines #L35 - L37 were not covered by tests
}

fn every_ten_minutes() -> String {
let mut rng = rand::thread_rng();
format!("{} {} */10 * * * *", rng.gen_range(0..59), rng.gen_range(0..59))
format!("{} */10 * * * *", rng.gen_range(0..59))
}

Check warning on line 43 in ee/tabby-webserver/src/cron/mod.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/cron/mod.rs#L40-L43

Added lines #L40 - L43 were not covered by tests

0 comments on commit d877573

Please sign in to comment.