Skip to content

fix(durable-object): fix wrong return type on durable object alarm fn#1023

Open
Darckfast wants to merge 1 commit into
cloudflare:mainfrom
Darckfast:fix-durable-object-alarm-return-type
Open

fix(durable-object): fix wrong return type on durable object alarm fn#1023
Darckfast wants to merge 1 commit into
cloudflare:mainfrom
Darckfast:fix-durable-object-alarm-return-type

Conversation

@Darckfast

Copy link
Copy Markdown

The alarm fn, according to Cloudflare docs https://developers.cloudflare.com/durable-objects/api/alarms/#alarm, returns void, but the workers-rs was returning a Result<Response>, this fixes by changing the return type to Result<()>

Fixes #712

The `alarm` fn, according to Cloudflare docs https://developers.cloudflare.com/durable-objects/api/alarms/#alarm, returns `void`, but the `workers-rs` was returning a `Result<Response>`, this fixes by changing the return type to `Result<()>`

Fixes cloudflare#712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant