This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/main by this push:
new 41c549067 fix/codec (#2710)
41c549067 is described below
commit 41c5490670e19762228ca35dcdffc853a584ea91
Author: Chales Xu <[email protected]>
AuthorDate: Sun Jul 21 16:33:17 2024 +0800
fix/codec (#2710)
---
protocol/triple/triple_protocol/protocol_triple.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/protocol/triple/triple_protocol/protocol_triple.go
b/protocol/triple/triple_protocol/protocol_triple.go
index 79074c526..6d7f1ca65 100644
--- a/protocol/triple/triple_protocol/protocol_triple.go
+++ b/protocol/triple/triple_protocol/protocol_triple.go
@@ -561,7 +561,7 @@ func (u *tripleUnaryUnmarshaler) Unmarshal(message
interface{}) *Error {
if err != nil {
if u.backupCodec != nil && u.codec.Name() !=
u.backupCodec.Name() {
logger.Warnf("failed to unmarshal message with codec
%s, trying alternative codec %s", u.codec.Name(), u.backupCodec.Name())
- err = u.UnmarshalFunc(message, u.codec.Unmarshal)
+ err = u.UnmarshalFunc(message, u.backupCodec.Unmarshal)
}
}
return err