workers-rs
workers-rs copied to clipboard
[BUG] alarm handler should return Result<()> instead of Result<Response>
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