From b97c5a2f5d89adfd7fdeff7148aa2aba4fa355cd Mon Sep 17 00:00:00 2001
From: fangyincheng <fangyincheng@sina.com>
Date: Sat, 30 Mar 2019 14:24:58 +0800
Subject: [PATCH] fix bug

---
 dubbo/client.go | 2 +-
 dubbo/codec.go  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dubbo/client.go b/dubbo/client.go
index 48d44f071..08e0a72a3 100644
--- a/dubbo/client.go
+++ b/dubbo/client.go
@@ -158,7 +158,7 @@ func (c *Client) call(ct CallType, addr string, svcUrl registry.ServiceURL, meth
 	p.Service.Method = method
 	p.Service.Timeout = opts.RequestTimeout
 	if opts.SerialID == 1 || opts.SerialID == 3 || opts.SerialID == 4 || opts.SerialID == 5 || opts.SerialID == 6 ||
-		opts.SerialID == 7 || opts.SerialID == 8 {
+		opts.SerialID == 7 {
 		p.Header.SerialID = byte(S_Default)
 	} else {
 		p.Header.SerialID = byte(opts.SerialID)
diff --git a/dubbo/codec.go b/dubbo/codec.go
index ae35de271..5b3bbb373 100644
--- a/dubbo/codec.go
+++ b/dubbo/codec.go
@@ -69,7 +69,7 @@ func (p *DubboPackage) Unmarshal(buf *bytes.Buffer, pkgType hessian.PackgeType)
 }
 
 func (p *DubboPackage) ReadBody(body interface{}) error {
-	err := p.Codec.ReadBody(&body)
+	err := p.Codec.ReadBody(body)
 	return jerrors.Trace(err)
 }
 
-- 
GitLab