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 2023/05/29 07:31:25 UTC
[dubbo] branch 3.2 updated: Add alibaba RpcContext getInvocation compact (#12416)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new 581defa2b4 Add alibaba RpcContext getInvocation compact (#12416)
581defa2b4 is described below
commit 581defa2b4bd7b1dfa90d1a02026984815b30dc2
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Mon May 29 15:31:16 2023 +0800
Add alibaba RpcContext getInvocation compact (#12416)
---
dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java
index 5d9d1a092d..d44f33f2b9 100644
--- a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java
+++ b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java
@@ -305,6 +305,10 @@ public class RpcContext {
return newRpcContext.get(key);
}
+ public Invocation getInvocation() {
+ return new Invocation.CompatibleInvocation(newRpcContext.getInvocation());
+ }
+
@Deprecated
public boolean isServerSide() {
return isProviderSide();