You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by zh...@apache.org on 2021/09/04 15:57:46 UTC

[dubbo-go-samples] 04/18: up:修改方法名称

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

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

commit fff662ea3f148a211ea0772d031a98461889de87
Author: zhaoyunxing92 <23...@qq.com>
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)