diff --git a/code_snippets/go/concepts/foodordering.go b/code_snippets/go/concepts/foodordering.go index 91e2ea08..67b13c02 100644 --- a/code_snippets/go/concepts/foodordering.go +++ b/code_snippets/go/concepts/foodordering.go @@ -43,9 +43,11 @@ func (OrderProcessor) Process(ctx restate.ObjectContext, order Order) error { // preparationAwakeable := restate.Awakeable[restate.Void](ctx) // - restate.Run(ctx, func(ctx restate.RunContext) (restate.Void, error) { + if _, err := restate.Run(ctx, func(ctx restate.RunContext) (restate.Void, error) { return restate.Void{}, restaurant.Prepare(order.Id, preparationAwakeable.Id()) - }) + }); err != nil { + return err + } // // // diff --git a/code_snippets/go/develop/awakeable.go b/code_snippets/go/develop/awakeable.go index 6f33be61..ab1def51 100644 --- a/code_snippets/go/develop/awakeable.go +++ b/code_snippets/go/develop/awakeable.go @@ -16,9 +16,11 @@ func (Awakeable) Greet(ctx restate.Context, name string) error { // // - restate.Run(ctx, func(ctx restate.RunContext) (string, error) { + if _, err := restate.Run(ctx, func(ctx restate.RunContext) (string, error) { return triggerTaskAndDeliverId(awakeableId) - }) + }); err != nil { + return err + } // // diff --git a/src/css/custom.css b/src/css/custom.css index 572dcd75..c08e569b 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -433,4 +433,8 @@ details { .schemaItem_node_modules-docusaurus-json-schema-plugin-lib-theme-JSONSchemaViewer-components-SchemaItem-styles-module:hover{ background-color: var(--ifm-alert-background-color-highlight) !important; -} \ No newline at end of file +} + +.ch-code-wrapper code { + tab-size: 2; +}