1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

Support direct generation of grpc method (#2474)

* Support direct generation of grpc method when package and service names of proto files are different.
* fix req.Interface() return nil.
This commit is contained in:
bosima
2022-04-10 22:12:39 +08:00
committed by GitHub
parent 62c2981baf
commit 1919048c8f
3 changed files with 17 additions and 5 deletions

View File

@ -557,7 +557,7 @@ func (router *router) ProcessMessage(ctx context.Context, msg Message) (err erro
}
// read the body into the handler request value
if err = cc.ReadBody(req.Interface()); err != nil {
if err = cc.ReadBody(req.Addr().Interface()); err != nil {
return err
}