Skip to content

Commit b23fb19

Browse files
committed
Checkout service is a service
1 parent ca4764c commit b23fb19

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tutorials/tour-of-restate-go/app/checkoutservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type CheckoutRequest struct {
99
Tickets []string `json:"tickets"`
1010
}
1111

12-
func (CheckoutService) Handle(ctx restate.ObjectContext, request CheckoutRequest) (bool, error) {
12+
func (CheckoutService) Handle(ctx restate.Context, request CheckoutRequest) (bool, error) {
1313
ctx.Log().Info("Hello")
1414
return true, nil
1515
}

tutorials/tour-of-restate-go/part1/checkoutservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type CheckoutRequest struct {
1010
Tickets []string `json:"tickets"`
1111
}
1212

13-
func (CheckoutService) Handle(ctx restate.ObjectContext, request CheckoutRequest) (bool, error) {
13+
func (CheckoutService) Handle(ctx restate.Context, request CheckoutRequest) (bool, error) {
1414
return true, nil
1515
}
1616

tutorials/tour-of-restate-go/part2/checkoutservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type CheckoutRequest struct {
1010
Tickets []string `json:"tickets"`
1111
}
1212

13-
func (CheckoutService) Handle(ctx restate.ObjectContext, request CheckoutRequest) (bool, error) {
13+
func (CheckoutService) Handle(ctx restate.Context, request CheckoutRequest) (bool, error) {
1414
return true, nil
1515
}
1616

tutorials/tour-of-restate-go/part3/checkoutservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type CheckoutRequest struct {
1010
Tickets []string `json:"tickets"`
1111
}
1212

13-
func (CheckoutService) Handle(ctx restate.ObjectContext, request CheckoutRequest) (bool, error) {
13+
func (CheckoutService) Handle(ctx restate.Context, request CheckoutRequest) (bool, error) {
1414
return true, nil
1515
}
1616

tutorials/tour-of-restate-go/part4/checkoutservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type CheckoutRequest struct {
1313
Tickets []string `json:"tickets"`
1414
}
1515

16-
func (CheckoutService) Handle(ctx restate.ObjectContext, request CheckoutRequest) (bool, error) {
16+
func (CheckoutService) Handle(ctx restate.Context, request CheckoutRequest) (bool, error) {
1717
totalPrice := len(request.Tickets) * 40
1818

1919
idempotencyKey := ctx.Rand().UUID().String()

0 commit comments

Comments
 (0)