Skip to content

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

@lukevalenta

Description

@lukevalenta

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions