This is an automated email from the ASF dual-hosted git repository.
laurence pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/3.0 by this push:
new b90089d hessian encode attachments return error (#1588)
b90089d is described below
commit b90089d8b8a392f2b771364e4d5641a21c01377c
Author: binbin.zhang <[email protected]>
AuthorDate: Tue Nov 16 12:15:52 2021 +0800
hessian encode attachments return error (#1588)
---
protocol/dubbo/impl/hessian.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/protocol/dubbo/impl/hessian.go b/protocol/dubbo/impl/hessian.go
index 26858dc..6ba77e8 100644
--- a/protocol/dubbo/impl/hessian.go
+++ b/protocol/dubbo/impl/hessian.go
@@ -150,8 +150,8 @@ func marshalRequest(encoder *hessian.Encoder, p
DubboPackage) ([]byte, error) {
request.Attachments[TIMEOUT_KEY] =
strconv.Itoa(int(service.Timeout / time.Millisecond))
}
- _ = encoder.Encode(request.Attachments)
- return encoder.Buffer(), nil
+ err = encoder.Encode(request.Attachments)
+ return encoder.Buffer(), err
}
var versionInt = make(map[string]int)