Skip to content

Commit 339639f

Browse files
committed
fix: fixes xns comments
1 parent 4116735 commit 339639f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/plugin/xns.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ func (svc *Manifest) genXNSUpdateFunctionAsync(f *g.File, update protoreflect.Fu
17211721
func (svc *Manifest) genXNSUpdateOptions(f *g.File, update protoreflect.FullName) {
17221722
typeName := svc.toCamel("%sUpdateOptions", update)
17231723

1724-
f.Commentf("%s are used to configure a(n) %s update execution", typeName, update)
1724+
f.Commentf("%s are used to configure a(n) %s update execution", typeName, svc.fqnForUpdate(update))
17251725
f.Type().Id(typeName).Struct(
17261726
g.Id("ActivityOptions").Op("*").Qual(workflowPkg, "ActivityOptions"),
17271727
g.Id("HeartbeatInterval").Qual("time", "Duration"),
@@ -2047,7 +2047,7 @@ func (svc *Manifest) genXNSWorkflowFunctionAsync(f *g.File, workflow protoreflec
20472047
func (svc *Manifest) genXNSWorkflowOptions(f *g.File, workflow protoreflect.FullName) {
20482048
typeName := svc.toCamel("%sWorkflowOptions", workflow)
20492049

2050-
f.Commentf("%s are used to configure a(n) %s workflow execution", typeName, workflow)
2050+
f.Commentf("%s are used to configure a(n) %s workflow execution", typeName, svc.fqnForWorkflow(workflow))
20512051
f.Type().Id(typeName).Struct(
20522052
g.Id("ActivityOptions").Op("*").Qual(workflowPkg, "ActivityOptions"),
20532053
g.Id("Detached").Bool(),
@@ -2494,7 +2494,7 @@ func (svc *Manifest) genXNSWorkflowRunInterface(f *g.File, workflow protoreflect
24942494
opts := svc.workflows[workflow]
24952495
hasOutput := !isEmpty(method.Output)
24962496

2497-
f.Commentf("%s provides a handle to a %s workflow execution", typeName, workflow)
2497+
f.Commentf("%s provides a handle to a %s workflow execution", typeName, svc.fqnForWorkflow(workflow))
24982498
f.Type().Id(typeName).InterfaceFunc(func(methods *g.Group) {
24992499
methods.Comment("Cancel cancels the workflow")
25002500
methods.Id("Cancel").

0 commit comments

Comments
 (0)