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

victory pushed a commit to branch getty_reactor
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git

commit 3d308e40694ee3cd34b3575e5cc9a67971df3b1e
Author: cvictory <shenglic...@gmail.com>
AuthorDate: Wed Jun 10 19:37:04 2020 +0800

    fix: path is not in param
---
 protocol/dubbo/dubbo_invoker.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/protocol/dubbo/dubbo_invoker.go b/protocol/dubbo/dubbo_invoker.go
index 988353e..fa48718 100644
--- a/protocol/dubbo/dubbo_invoker.go
+++ b/protocol/dubbo/dubbo_invoker.go
@@ -49,7 +49,7 @@ var (
 
 var (
        attachmentKey = []string{constant.INTERFACE_KEY, constant.GROUP_KEY, 
constant.TOKEN_KEY, constant.TIMEOUT_KEY,
-               constant.PATH_KEY, constant.VERSION_KEY}
+               constant.VERSION_KEY}
 )
 
 // DubboInvoker is implement of protocol.Invoker. A dubboInvoker refer to one 
service and ip.
@@ -98,6 +98,7 @@ func (di *DubboInvoker) Invoke(ctx context.Context, 
invocation protocol.Invocati
 
        inv := invocation.(*invocation_impl.RPCInvocation)
        // init param
+       inv.SetAttachments(constant.PATH_KEY, di.GetUrl().Path)
        for _, k := range attachmentKey {
                if v := di.GetUrl().GetParam(k, ""); len(v) > 0 {
                        inv.SetAttachments(k, v)

Reply via email to