Closed sueskind closed 1 year ago
This MR fixes the example in the README.md file as it was unnecessarily complicated and did not actually compile/run. The following changes were made:
README.md
Result<(), JobSchedulerError>
main()
sched.add
Job::new
std::time::Duration
tokio_cron_scheduler::JobToRun
info!
warn!
println!
log
chrono
.unwrap()
?
signal
tokio-cron-scheduler
Fixes #39 (and #37 to some extent).
Thank you for the PR @sueskind !
This MR fixes the example in the
README.md
file as it was unnecessarily complicated and did not actually compile/run. The following changes were made:Result<(), JobSchedulerError>
as result type formain()
sched.add
instead ofJob::new
)std::time::Duration
tokio_cron_scheduler::JobToRun
info!
andwarn!
macros withprintln!
to avoid dependency to thelog
cratechrono
to avoid the dependency.unwrap()
s with the more idiomatic?
operatorsignal
feature must be enabled fortokio-cron-scheduler
Fixes #39 (and #37 to some extent).