Skip to content

Commit

Permalink
Reduce tab spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Sep 4, 2024
1 parent 428ed14 commit 76e2e90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions code_snippets/go/concepts/foodordering.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ func (OrderProcessor) Process(ctx restate.ObjectContext, order Order) error {
// <mark_3>
preparationAwakeable := restate.Awakeable[restate.Void](ctx)
// <mark_5>
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
}
// </mark_5>
// </mark_3>
// <mark_4>
Expand Down
6 changes: 4 additions & 2 deletions code_snippets/go/develop/awakeable.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ func (Awakeable) Greet(ctx restate.Context, name string) error {
// </mark_1>

// <mark_2>
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
}
// </mark_2>

// <mark_3>
Expand Down
6 changes: 5 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

.ch-code-wrapper code {
tab-size: 2;
}

0 comments on commit 76e2e90

Please sign in to comment.