-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rft: Filter #1299
Rft: Filter #1299
Conversation
fix config name fix name problems update for code style temp sync sync refactor filter done
Codecov Report
@@ Coverage Diff @@
## 3.0 #1299 +/- ##
==========================================
- Coverage 59.53% 55.77% -3.76%
==========================================
Files 259 273 +14
Lines 12737 12796 +59
==========================================
- Hits 7583 7137 -446
- Misses 4199 4741 +542
+ Partials 955 918 -37
Continue to review full report at Codecov.
|
可以再仔细看下接口的命名,这次改了之后尽量杜绝接口名的改动。 |
目前接口名基本上可以做到不需要再改了,同时加入了filter_impl包用于与旧版代码兼容,如果以后能在dubbogo/imports项目中或者代码中给出import实例,后续可以把filter_impl删除。 |
@@ -62,12 +62,12 @@ func TestProtocolFilterWrapperRefer(t *testing.T) { | |||
|
|||
// the same as echo filter, for test | |||
func init() { | |||
extension.SetFilter("echo", GetFilter) | |||
extension.SetFilter("echo", newFilter) | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not affected the real EchoFilter? (If this SetFilter
is performed after real EchoFilter 's SetFilter
) @LaurenceLiZhixin
What this PR does:
filter_impl
to subpackageWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
filter_impl
is reserved and ensures users use the filters without modifying the code.Does this PR introduce a user-facing change?: