Skip to content

Commit

Permalink
fix req.Interface() return nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxinglun committed Apr 9, 2022
1 parent 0d435a6 commit 90a1b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rpc_router.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 90a1b34

Please sign in to comment.