-
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
ftr: Grpc Protocol Support #311
Conversation
Merge develop into feature/grpc
feat(grpc): 支持client grpc 调用
Codecov Report
@@ Coverage Diff @@
## develop #311 +/- ##
===========================================
+ Coverage 66.58% 66.85% +0.27%
===========================================
Files 113 118 +5
Lines 7239 7467 +228
===========================================
+ Hits 4820 4992 +172
- Misses 1947 1977 +30
- Partials 472 498 +26
Continue to review full report at Codecov.
|
Merge develop into feature/grpc and resolve conflicts
Perfect. LGTM |
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.
LGTM
remoting/zookeeper/listener.go
Outdated
@@ -239,6 +241,7 @@ func (l *ZkEventListener) listenDirEvent(zkPath string, listener remoting.DataLi | |||
|
|||
//listen sub path recursive | |||
go func(zkPath string, listener remoting.DataListener) { | |||
fmt.Printf("zkpath: %v \n", zkPath) | |||
l.listenDirEvent(zkPath, listener) |
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.
rm fmt.Printf
protocol/protocol.go
Outdated
@@ -29,7 +29,7 @@ import ( | |||
// Extension - protocol | |||
type Protocol interface { | |||
Export(invoker Invoker) Exporter | |||
Refer(url common.URL) Invoker | |||
Refer(url common.URL, impl interface{}) Invoker | |||
Destroy() |
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 there any other solution rather than add a parameter? Too many code changed..
And it's also not commonly used except for grpc.
Mod: modidfy Refer params and add licence
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.
LGTM
What this PR does:
Merge the feature/grpc into develop
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: