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

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


The following commit(s) were added to refs/heads/1.5 by this push:
     new 6497cc2  up:修改方法名称
     new 024ac44  Merge pull request #114 from zhaoyunxing92/1.5.7-rc
6497cc2 is described below

commit 6497cc203d02b37639f796d84981148a30ba7e32
Author: zhaoyunxing92 <[email protected]>
AuthorDate: Sun May 16 20:36:46 2021 +0800

    up:修改方法名称
---
 filter/custom/go-server/pkg/custom_filter.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filter/custom/go-server/pkg/custom_filter.go 
b/filter/custom/go-server/pkg/custom_filter.go
index 651fde5..7018180 100644
--- a/filter/custom/go-server/pkg/custom_filter.go
+++ b/filter/custom/go-server/pkg/custom_filter.go
@@ -56,7 +56,7 @@ type myCustomFilter struct{}
 func (mf myCustomFilter) Invoke(ctx context.Context, invoker protocol.Invoker, 
invocation protocol.Invocation) protocol.Result {
        // the logic put here...
        // you can get many params in url. And the invocation provides more 
information about
-       url := invoker.GetUrl()
+       url := invoker.GetURL()
        serviceKey := url.ServiceKey()
        gxlog.CInfo("Here is the my custom filter. The service is invoked: %s", 
serviceKey)
        return invoker.Invoke(ctx, invocation)

Reply via email to