Skip to content

Commit

Permalink
Merge pull request #1251 from felix021/fix/thrift-streaming-lower-method
Browse files Browse the repository at this point in the history
fix: thrift streaming with lower method name
  • Loading branch information
Felix021 authored Feb 19, 2024
2 parents 843102b + 1132fbf commit ff85e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/internal_pkg/tpl/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func {{LowerFirst .Name}}Handler(ctx context.Context, handler interface{}, arg,
if !ok {
return errors.New("{{.ServiceName}}.{{.Name}} is a thrift streaming method, please call with Kitex StreamClient")
}
stream := &{{LowerFirst .ServiceName}}{{.Name}}Server{st.Stream}
stream := &{{LowerFirst .ServiceName}}{{.RawName}}Server{st.Stream}
{{- if not $serverSide}}
return handler.({{.PkgRefName}}.{{.ServiceName}}).{{.Name}}(stream)
{{- else}} {{/* !$serverSide */}}
Expand Down

0 comments on commit ff85e39

Please sign in to comment.