You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2024/07/21 08:33:22 UTC

(dubbo-go) branch main updated: fix/codec (#2710)

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 <11...@users.noreply.github.com>
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