You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/12/03 11:54:28 UTC

[dubbo-go] branch 3.0 updated: fix(dubbo): fix issus where result.attrs is not sent (#1636)

This is an automated email from the ASF dual-hosted git repository.

alexstocks 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 4748b93  fix(dubbo): fix issus where result.attrs is not sent (#1636)
4748b93 is described below

commit 4748b93e56233e1362a98b4661df02e8dc32a824
Author: Xuewei Niu <ju...@apache.org>
AuthorDate: Fri Dec 3 19:49:42 2021 +0800

    fix(dubbo): fix issus where result.attrs is not sent (#1636)
---
 protocol/dubbo/dubbo_protocol.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/protocol/dubbo/dubbo_protocol.go b/protocol/dubbo/dubbo_protocol.go
index 58c0601..8b46983 100644
--- a/protocol/dubbo/dubbo_protocol.go
+++ b/protocol/dubbo/dubbo_protocol.go
@@ -167,6 +167,7 @@ func doHandleRequest(rpcInvocation *invocation.RPCInvocation) protocol.RPCResult
 			// p.Header.ResponseStatus = hessian.Response_OK
 			// p.Body = hessian.NewResponse(res, nil, result.Attachments())
 		}
+		result.Attrs = invokeResult.Attachments()
 	} else {
 		result.Err = fmt.Errorf("don't have the invoker, key: %s", rpcInvocation.ServiceKey())
 	}