From 90a1b34195e07772fa6f2074e1cf22237ac2a87f Mon Sep 17 00:00:00 2001 From: maxinglun Date: Sat, 9 Apr 2022 12:17:13 +0800 Subject: [PATCH] fix req.Interface() return nil. --- server/rpc_router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/rpc_router.go b/server/rpc_router.go index 7985b9ab..bcef5bb3 100644 --- a/server/rpc_router.go +++ b/server/rpc_router.go @@ -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 }