Skip to content

Commit

Permalink
Merge pull request #75 from ningnao/fix_59
Browse files Browse the repository at this point in the history
fix: cargo build warning #59
  • Loading branch information
harlanc authored Nov 29, 2023
2 parents 5c42f07 + 8bdbb00 commit 6a0bf40
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 49 deletions.
61 changes: 17 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion library/logger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository = "https://github.com/harlanc/xiu"
[dependencies]
anyhow = "^1.0"
env_logger = "0.10.0"
job_scheduler = "1.2.1"
job_scheduler_ng = "2.0.4"
chrono = "0.4"
failure = "0.1.1"
log = "0.4.0"
2 changes: 1 addition & 1 deletion library/logger/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use {
anyhow::Result,
chrono::prelude::*,
env_logger::{Builder, Env, Target},
job_scheduler::{Job, JobScheduler},
job_scheduler_ng::{Job, JobScheduler},
std::{
env, fs,
fs::{File, OpenOptions},
Expand Down
6 changes: 3 additions & 3 deletions library/logger/src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ mod tests {
println!("{cur_number}");
}



// #[test]
// fn test_job_scheduler() {
// fn test_job_scheduler_ng() {
// let mut sched = JobScheduler::new();

// sched.add(Job::new("0 0 * * * *".parse().unwrap(), || {
Expand Down

0 comments on commit 6a0bf40

Please sign in to comment.