workers-rs icon indicating copy to clipboard operation
workers-rs copied to clipboard

[BUG] alarm handler should return Result<()> instead of Result<Response>

Open lukevalenta opened this issue 10 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What version of workers-rs are you using?

0.5.0

What version of wrangler are you using?

3.114.1

Describe the bug

The alarm() handler in the Javascript API returns void, but the Rust API returns a Result<Response>. Returning a Result<()> would make more sense here, unless there's some underlying reason it has to be the way it is.

Steps To Reproduce

No response

lukevalenta avatar Mar 11 '25 17:03 lukevalenta