Update server.go (#2027)

status-code-override
songzhibin97 3 years ago committed by chenzhihui
parent 3a15f5df9e
commit 4e51b25f11
  1. 5
      cmd/kratos/internal/proto/server/server.go

@ -63,13 +63,14 @@ func run(cmd *cobra.Command, args []string) {
}
for _, e := range s.Elements {
r, ok := e.(*proto.RPC)
if ok {
if !ok {
continue
}
cs.Methods = append(cs.Methods, &Method{
Service: s.Name, Name: caser.String(r.Name), Request: r.RequestType,
Reply: r.ReturnsType, Type: getMethodType(r.StreamsRequest, r.StreamsReturns),
})
}
}
res = append(res, cs)
}),
)

Loading…
Cancel
Save