Skip to content

Commit bcc80f9

Browse files
Fix options injection in kt codegen (#274)
1 parent 607b508 commit bcc80f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk-api-kotlin-gen/src/main/resources/templates/BindableComponent.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class {{generatedClassSimpleName}}(
99
const val COMPONENT_NAME: String = "{{componentName}}";
1010
}
1111

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

0 commit comments

Comments
 (0)