Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Oct 25, 2024
1 parent 6035689 commit f3e4bb8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion examples/cron/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ crate-type = ["cdylib"]

[dependencies]
worker = { workspace = true }
wasm-rs-dbg = "0.1.2"
2 changes: 1 addition & 1 deletion examples/cron/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ use worker::*;

#[event(scheduled)]
async fn scheduled(_evt: ScheduledEvent, _env: Env, _ctx: ScheduleContext) {
wasm_rs_dbg::dbg!("Hello cron!");
console_log!("Hello cron!");
}
1 change: 1 addition & 0 deletions examples/cron/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility_date = "2023-03-22"
command = "cargo install worker-build && worker-build --release"

[triggers]
# Run every 5 minutes. https://developers.cloudflare.com/workers/configuration/cron-triggers/
crons = ["*/5 * * * *"]

[observability]
Expand Down

0 comments on commit f3e4bb8

Please sign in to comment.