Skip to content

Commit

Permalink
Fix options injection in kt codegen (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Apr 8, 2024
1 parent 607b508 commit bcc80f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class {{generatedClassSimpleName}}(
const val COMPONENT_NAME: String = "{{componentName}}";
}

val component: dev.restate.sdk.kotlin.Component = dev.restate.sdk.kotlin.Component.{{#if isObject}}virtualObject{{else}}service{{/if}}(COMPONENT_NAME) {
val component: dev.restate.sdk.kotlin.Component = dev.restate.sdk.kotlin.Component.{{#if isObject}}virtualObject{{else}}service{{/if}}(COMPONENT_NAME, options) {
{{#handlers}}
handler(dev.restate.sdk.kotlin.Component.HandlerSignature("{{name}}", {{{inputSerdeDecl}}}, {{{outputSerdeDecl}}})) { ctx, req ->
{{#if inputEmpty}}bindableComponent.{{name}}(ctx){{else}}bindableComponent.{{name}}(ctx, req){{/if}}
Expand Down

0 comments on commit bcc80f9

Please sign in to comment.