Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use panics where possible, implement selector #4

Merged
merged 6 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example/ticket_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func unreserve(ctx restate.ObjectContext, _ restate.Void) (void restate.Void, er
}

if status != TicketSold {
return void, ctx.Clear("status")
ctx.Clear("status")
return void, nil
}

return void, nil
Expand Down
3 changes: 2 additions & 1 deletion example/user_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func checkout(ctx restate.ObjectContext, _ restate.Void) (bool, error) {
}
}

return true, ctx.Clear("tickets")
ctx.Clear("tickets")
return true, nil
}

var (
Expand Down
180 changes: 180 additions & 0 deletions generated/proto/go/go.pb.go

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

186 changes: 0 additions & 186 deletions generated/proto/javascript/javascript.pb.go

This file was deleted.

Loading
Loading